Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mshFlexgrid ? column headings 1

Status
Not open for further replies.

vbmorton

Technical User
Dec 27, 2004
44
US
can anyone tell me how i get the column headings from a grd that has 6 columns and multiple rows. I want the user to select anywhere on the grid, and then take what ever col he's on and resort the grid using that column that he selected showing him the heading of the grid in a seperate textfield, that he can see.??

grdMygrid.row gets me the row i want, just how do i get the column.. tried using grdMygrid.col but that didnt work.?

any ideas?
 
You should be able to get the column number with
Code:
MSFlexGrid1.Col
which return the selected column.

You can get the informatiuon in the column header, or the name of the column with
Code:
MSFlexGrid1.TextMatrix(0,MSFlexGrid1.Col)
which returns the value in the specified cell.

zemp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top