Get value of selected item from dataGrid component
Posted on 2005-05-16
I have a datagrid that is pulling data in dynamically from a database. There are three fields of data that are being queried, and what I need to do is check if one of those fields equals a certain criteria, and if true, make the button selectable.
Basically, I would draw out the desired functionality like this:
field1 field2 field3
------ ------- -------
id1 title1 typea <------- if field3 = 'typea', btn_select enabled = true; else btn_select enabled = false
id2 title2 typeb
id3 title3 typec
Can anyone help me out and let me know how I can determine the value of the data in 'field3' above, for dg_someData, and enable the select button if the selected item matches the criteria?
Thanks in advance!