Results 1 to 2 of 2

Thread: True DB Grid- Accessing the col no which the user clicked

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2000
    Posts
    5

    Post

    I was trying to access the column number of a column clicked in a true db grid as I wanted to hide some control based on that.
    How do I do that??
    If i use gridname.col it gives me the column number of the first column.
    Help!!!!

  2. #2
    Big D Danial's Avatar
    Join Date
    Jul 2000
    Location
    ASP.Net Forum
    Posts
    2,877
    Hi,
    Use the Click event use "HeadClick", that should fix your problem.

    Hope this helps.

    Danial

    Code:
    Private Sub DBGrid1_HeadClick(ByVal ColIndex As Integer)
        Me.Caption = ColIndex
    End Sub
    [VBF RSS Feed]

    There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.

    If I have been helpful, Please Rate my Post. Thanks.

    This post was powered by :

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width