I have a data grid with an edit button that will allow you to edit the record. But you have to click it twice to get it to work, I have never had to do this before. Any ideas on why I have to click it twice to get the edit function to work?<BR><BR> Sub DoItemEdit(ByVal objSource As Object, ByVal objArgs As DataGridCommandEventArgs)<BR> DataGrid1.SelectedIndex = -1<BR> DataGrid1.EditItemIndex = objArgs.Item.ItemIndex<BR><BR> End Sub<BR><BR>This has always worked for me in the past.