Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I have a datagrid.. I'd like to know how you click on a column.. and get the column header name.

 

I tried something like this and can get the index value.. but can't figure out how to get the actual name.

 

DataGrid1.HitTest(e.X, e.Y).Column

 

thanks

shannon

JvCoach23

VB.Net newbie

MS Sql Vet

Posted

I'm getting an error on the

dim hti as hittest

 

says typehittest is not defined..

it's simple isn't it.. what I'm not getting

 

Dim hti as HitTest = DataGrid1.HitTest(e.X, e.Y)
Dim strColumnName as String = DataGrid1.TableStyles(0).GridColumnStyles(hti.Column).Name

JvCoach23

VB.Net newbie

MS Sql Vet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...