Problem With Grid View Header
-
Hi All, Simply i want to fetch gridview header row (heading in column) from button click note that button is outside from that grid. :cool:
-
Hi All, Simply i want to fetch gridview header row (heading in column) from button click note that button is outside from that grid. :cool:
-
Hi All, Simply i want to fetch gridview header row (heading in column) from button click note that button is outside from that grid. :cool:
onbutton click dim st as String 'check which is it's property Cells or Items st=Gridview1.Rows(0).Cells(0).HeaderText or st=Gridview1.Rows(0).Items(0).HeaderText 'Here Cells(0) or Items(0) means the 0th index Column So u have to do it for all Columns i.e.Cells(0),Cells(1),Cells(2),Cells(3).....
Darshana Pathak
-
you can use this code <asp:GridView ID="GridView1" runat="server"> <Columns> <asp:ButtonField ButtonType="Button" Text="Button" /> </Columns> </asp:GridView>
wrong answer