Click here to Skip to main content
16,022,798 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more: (untagged)
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]
Posted

1 solution

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).....

 
Share this answer
 


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900