how to store gridview values in a two dimesion array
am having a gridview like this
[code=html]
<asp:GridView ID="GridView1" runat="server" AutoGenerateCol umns="False" Width="150px">
<Columns>
<asp:TemplateFi eld HeaderText="tes t1">
<ItemTemplate >
<asp:TextBox ID="tbx1" runat="server" Width="30"></asp:TextBox>
</ItemTemplate>
<ItemStyle Width="30px" />
</asp:TemplateFie ld>
<asp:TemplateFi eld HeaderText="tes t2">
<ItemTemplate >
<asp:TextBox ID="tbx2" runat="server" Width="30"></asp:TextBox>
</ItemTemplate>
<ItemStyle Width="30px" />
</asp:TemplateFie ld>
<asp:TemplateFi eld HeaderText="t3" >
<ItemTemplate >
<asp:TextBox ID="tbx3" runat="server" Width="30"></asp:TextBox>
</ItemTemplate>
<ItemStyle Width="30px" />
</asp:TemplateFie ld>
<asp:TemplateFi eld HeaderText="t4" >
<ItemTemplate >
<asp:TextBox ID="tbx4" runat="server" Width="30"></asp:TextBox>
</ItemTemplate>
<ItemStyle Width="30px" />
</asp:TemplateFie ld>
<asp:TemplateFi eld HeaderText="t5" >
<ItemTemplate >
<asp:TextBox ID="tbx5" runat="server" Width="30"></asp:TextBox>
</ItemTemplate>
<ItemStyle Width="30px" />
</asp:TemplateFie ld>
</Columns>
</asp:GridView>
[/code]
when i click a button, i want to store the datas into a two dimensional array..
am having a gridview like this
[code=html]
<asp:GridView ID="GridView1" runat="server" AutoGenerateCol umns="False" Width="150px">
<Columns>
<asp:TemplateFi eld HeaderText="tes t1">
<ItemTemplate >
<asp:TextBox ID="tbx1" runat="server" Width="30"></asp:TextBox>
</ItemTemplate>
<ItemStyle Width="30px" />
</asp:TemplateFie ld>
<asp:TemplateFi eld HeaderText="tes t2">
<ItemTemplate >
<asp:TextBox ID="tbx2" runat="server" Width="30"></asp:TextBox>
</ItemTemplate>
<ItemStyle Width="30px" />
</asp:TemplateFie ld>
<asp:TemplateFi eld HeaderText="t3" >
<ItemTemplate >
<asp:TextBox ID="tbx3" runat="server" Width="30"></asp:TextBox>
</ItemTemplate>
<ItemStyle Width="30px" />
</asp:TemplateFie ld>
<asp:TemplateFi eld HeaderText="t4" >
<ItemTemplate >
<asp:TextBox ID="tbx4" runat="server" Width="30"></asp:TextBox>
</ItemTemplate>
<ItemStyle Width="30px" />
</asp:TemplateFie ld>
<asp:TemplateFi eld HeaderText="t5" >
<ItemTemplate >
<asp:TextBox ID="tbx5" runat="server" Width="30"></asp:TextBox>
</ItemTemplate>
<ItemStyle Width="30px" />
</asp:TemplateFie ld>
</Columns>
</asp:GridView>
[/code]
when i click a button, i want to store the datas into a two dimensional array..
Comment