This question is locked. New answers and comments are not allowed.
Hi.
When I click on a datarow I have a custom event that passes the e.Row.Item to another handler (the datagrid is bound using your datatable examples). However as the table binding is dynamic then I dont know what fields would be populated therefore how can I get the values in a more readable source?
Example
If I had field1 in the datarow then e.Row.Item.field1 would be valid however I need to dynamically call the field so would need something like e.Row.Item[searchfield] (search filed would be a string value of the field I wanted to retreive the value for).
Thanks
P
When I click on a datarow I have a custom event that passes the e.Row.Item to another handler (the datagrid is bound using your datatable examples). However as the table binding is dynamic then I dont know what fields would be populated therefore how can I get the values in a more readable source?
Example
If I had field1 in the datarow then e.Row.Item.field1 would be valid however I need to dynamically call the field so would need something like e.Row.Item[searchfield] (search filed would be a string value of the field I wanted to retreive the value for).
Thanks
P