Home Forums WinForms controls Xceed Grid for WinForms trouble using GridComboBox as CellViewer Reply To: trouble using GridComboBox as CellViewer

User (Old forums)
Member
Post count: 23064

For your gridcombobox declared as,

GridComboBox _gridViewer = new GridComboBox();

Make sure that you have done the following things.

1. Add the control to the form controls collection,

this.Controls.Add(_gridViewer);

2, A tip from xceed support, This is very important, set the left and top to this values, this is probably why your data is not showing because the orignal grid viewer is covering it

_gridViewer.Left = -1000;
_gridViewer.Top = -1000;

3. that you have added the list of items, or bind the datasource

_gridViewer.Items.Add(“testdata”)’

do the above in the code between grid.BeginInit and grid.EndInit

Imported from legacy forums. Posted by userX (had 383 views)