2 things
1) in the BIND of the datagrid
this.datagrid1.DataKeyField = "YOUR_DB_KEY_FIELD";
2) in the datagrid_SelectedIndexChanged event
int MyRowID =
this.datagrid1.DataKeys[this.datagrid1.SelectedIndex].ToString();
--
Curt Christianson
Owner/Lead Developer, DF-Software
Site:
http://www.Darkfalz.com
Blog:
http://blog.Darkfalz.com
EMW said:
Then how is it done with just the row?
rg,
Eric