I have <asp:GridView> that has a select, edit, delete and insert links within its rows. I want to trigger the OnSelectedIndexChanged after I insert a row.
Can someone help??
Simply select the row by calling the GridView.SelectRow(int rowIndex) method, passing the index of the new row. This will fire the SelectedIndexChanged event (*)
(*) To be more precise, it will first fire the SelectedIndexChanging event, then only fire SelectedIndexChanged if none of the SelectedIndexChanging event handlers has set cancel to true.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With