how to add an combobox in a datagri(Vb.net)

please help

1 Reply

SR sree May 9, 2006 06:37 AM UTC

drag one datagrid onto ur form enter the following code. this is work for column number 2. If DataGrid1.CurrentCell.ColumnNumber = 2 Then ComboBox1.Left = DataGrid1.Left + DataGrid1.GetCurrentCellBounds.Left ComboBox1.Top = DataGrid1.Top + DataGrid1.GetCurrentCellBounds.Top ComboBox1.Width = DataGrid1.GetCurrentCellBounds.Width ComboBox1.Visible = True Else ComboBox1.Visible = False End If

Loader.
Up arrow icon