void CustomersGridView_RowCreated(Object sender, GridViewRowEventArgs e) { // The GridViewCommandEventArgs class does not contain a // property that indicates which row's command button was // clicked. To identify which row was clicked, use the button's // CommandArgument property by setting it to the row's index. if(e.Row.RowType == DataControlRowType.DataRow) { // Retrieve the LinkButton control from the first column. LinkButton addButton = (LinkButton)e.Row.Cells[0].Controls[0]; // Set the LinkButton's CommandArgument property with the // row's index. addButton.CommandArgument = e.Row.RowIndex.ToString(); } }BTW, to show some of my other frustrations with IDE - in VFP it's enough to highlight some command and press F1 to get help. In VS I'm getting completely unrelated help doing this and have to always google for help - very inconvenient :(