Question

Locked

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 vb.net and Sql server

This conversation is currently closed to new comments.

3 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -

Essentially

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 -

DataGridViewComboBoxColumn

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
datagridview1.currenrow.cells(index).values

Back to Networks Forum
3 total posts (Page 1 of 1)  

Related Discussions

Related Forums