gridview cancel Edit if Select row

Definition

New Member
I have a gridview with Edit and Select buttons.What I want to do is if I row is in Edit mode, and Select is clicked for another row, I want to end Edit mode on the other row and just select the new row.The default behaviour is to select the new row and leave the edit row still in edit mode.I know that has to be fixed here:\[code\]protected void gvRecordList_SelectedIndexChanged(object sender, EventArgs e){}\[/code\]But what is the syntax for exiting edit mode on a row?
 
Back
Top