Results 1 to 2 of 2

Thread: how to do it ? I m new to vb.

  1. #1

    Thread Starter
    New Member
    Join Date
    May 1999
    Location
    delhi,India
    Posts
    5

    Post

    I want to know how i can do the following :-
    I have a dbgrid(dbgrdEducation), it has five columns(ID,University, Year of Passing, Stream, Degree)ID column is hidden, Now i want that when i click the cell(button) in column Stream it should show me a drop down list similar to combo-box.In the list i want Science,Humanities,Engineering etc. please help me. it is urgent.

  2. #2
    Member
    Join Date
    Feb 1999
    Location
    Lexington,kentucky,USA
    Posts
    61

    Post

    dbGrid which comes with vb as no property which will put a combo box in a column.

    But with tdbgrid 6.0 you have a property where you attach a combobox to column of a grid.

    But you can also fake it.

    First you create a combo box.

    On the click event of the column of grid you set top and left properties of the cell to combo box, so that it pulls up right over the cell.

    I think you know, how to add items to combo by using additem property of combo box.

    I think you got the idea.

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