vb.Net Program Problem
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
Networks
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
by ajayyadav20022006 Accepted solution
by tony hopkinson Accepted solution
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 Accepted solution
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.
Sort by Trending