J
Joel Reinford
I am looking for a way to set the selectedindex of a datagrid based on the
datakey value.
For example given this grid with a datakey of OrderID:
OrderID Item
54 A
98 B
102 C
263 A
If I have a value of 102, I'd like to have selectedindex = 2. The usage for
this is for selecting a specific row in the datagrid after adding/deleting
rows.
Joel Reinford
Data Management Solutions LLC
datakey value.
For example given this grid with a datakey of OrderID:
OrderID Item
54 A
98 B
102 C
263 A
If I have a value of 102, I'd like to have selectedindex = 2. The usage for
this is for selecting a specific row in the datagrid after adding/deleting
rows.
Joel Reinford
Data Management Solutions LLC