Question Locked

vb.Net Program Problem

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

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

3 replies

by tony hopkinson

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.

by son_cntt2003

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

get values selected:
using object currenrow of datagridview
datagridview1.currenrow.cells(index).values

This discussion is closed to new replies.