vb.Net Program Problem

By ajayyadav20022006 ·
i m working on DataGrid.
how can i create Combobox and text filed in data grid throuhg select combobox value.
using and Sql server

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Answers

Collapse -


by Tony Hopkinson In reply to vb.Net Program Problem

you put the comboxbox on top of the cell in the grid.
The way it's normally done is to intercept the code that draws the cell and make it look like a combobox. Then if the user clicks on the drop down arrow, you create a real combobox on top of the cell use it, get the value put it in the cell and destroy the combo.

Look up inplace edit and grids.

Collapse -


by son_cntt2003 In reply to vb.Net Program Problem

you using :
dim combo as new Datagridviewcomboboxcolumn
combo.datasource= tablename
combo.displaymember= NameDisplay
combo.Valuemember= values

get values selected:
using object currenrow of datagridview

Related Discussions

Related Forums