This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills: The software developer's life manual and have John Sonmez on-line!
See this thread for details.
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to Make DataGrid configured to act only on a Specific column on a Row

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am having a DataGrid which has been populated with a search result data from DataBase .
Say for example

CustomerID Name Email

100 Ravi ravi@gmail.com



Now my requirement is

When the user clicks on CUstomerID only i want to generate an event , but not not to any other coulmn on that particular row
(Means for example i dont want to generate an event when he clicks on email or name in my case.)

Please tell me how to implement this ??
 
manoj r patil
Ranch Hand
Posts: 181
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use ItemRenderer and have a check for your particular column index and change the default behavior of the cell for that column.
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your response .
You can use ItemRenderer


Do you mean to use a Customized Item Renderer ?? or anything supplied by Flex for this ??
 
manoj r patil
Ranch Hand
Posts: 181
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes, I meant customized item renderer. You can get examples on the adobe site.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic