I designed gridview in followin way
<asp:gridview runat="server" id="gv" autogeneratecolumns="false">
<columns>
<asp:TemplateField HeaderText="column1">
<ItemTemplate>
<asp:Label ID="lbl1" runat="server" Text='<%#Eval("name") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
</columns>
</gridview>
Now at codebehind while clicking "save" button i need to get these values and save into particular table
How to get these values?
I tried in following manner which fails
string a= gv.Rows[i].Cells[0].Text.ToString();
which carries empty string..but truly it contains values