aspose file tools*
The moose likes Flex and the fly likes How to Make DataGrid configured to act only  on a Specific column on a Row Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Flex
Bookmark "How to Make DataGrid configured to act only  on a Specific column on a Row" Watch "How to Make DataGrid configured to act only  on a Specific column on a Row" New topic
Author

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

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

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 ??

Save India From Corruption - Anna Hazare.
manoj r patil
Ranch Hand

Joined: Jun 06, 2002
Posts: 181
You can use ItemRenderer and have a check for your particular column index and change the default behavior of the cell for that column.


love your job and not your company;
...because you never know when your company will stop loving you!
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

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

Joined: Jun 06, 2002
Posts: 181
yes, I meant customized item renderer. You can get examples on the adobe site.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to Make DataGrid configured to act only on a Specific column on a Row
 
Similar Threads
JTABLE's valuchanged method?
Jtable Event Handling
Question related to logic:iterate tag
displaying 2 datagrids so as to avoid NullPointerException
Struts Layout Datagrid Validation