PDA

Click to See Complete Forum and Search --> : how to do it ? I m new to vb.


jskajla
Aug 4th, 1999, 07:15 PM
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.

kishore
Aug 4th, 1999, 07:42 PM
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.