Results 1 to 2 of 2

Thread: Getting Dbgrid's Column Index By Columns Caption

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 1999
    Location
    ca, usa
    Posts
    91

    Post

    I am trying to figure out how to get a Dbgrids column index, only by knowing the columns caption, is their away to do this? if so can some one give me an example?

    Thank you,
    Jeremy

    ------------------
    [email protected]

  2. #2
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177

    Post


    iColumnIndex = DBGrid1.Columns("ColumnName").ColIndex

    ------------------
    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]

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