cell clicked on webcontrol datagrid

  • Thread starter Thread starter EMW
  • Start date Start date
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
 
Back
Top