hello,
I have a gridview, I add a commandfield (select) to it when user click it, a div with some textboxes opens for edditing gridview contents. then when user select save button I want the gridview to updated. I used the below code but I encounter with the error:System.IndexOutOfRangeException: There is no row at position 0.
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
CssClass="admingrid" DataKeyNames="NewsID"
ShowHeader="False" Width="100%" onrowcommand="GridView1_RowCommand"
onrowdeleting="GridView1_RowDeleting"
onselectedindexchanged="GridView1_SelectedIndexChanged">
<AlternatingRowStyle CssClass="altgridrow" />
<Columns>
<asp:TemplateField>
< ...
Go to the complete details ...