I have a datagrid with the following event:
public void DataGrid1_EditCommand(object source,
System.Web.UI.WebControls.DataGridCommandEventArgs e)
{
DataGrid1.EditItemIndex = e.Item.ItemIndex;
}
When I debug and hit the Edit button, it runs through this code until the selected record is found. Then I have to hit the same button again to turn the selected column into a text box. Does anyone know what is causing this?
public void DataGrid1_EditCommand(object source,
System.Web.UI.WebControls.DataGridCommandEventArgs e)
{
DataGrid1.EditItemIndex = e.Item.ItemIndex;
}
When I debug and hit the Edit button, it runs through this code until the selected record is found. Then I have to hit the same button again to turn the selected column into a text box. Does anyone know what is causing this?