RC
Rajadurai C
Syncfusion Team
January 11, 2010 01:39 PM UTC
Hi Ruslan,
Thanks for your interest in Syncfusion Products.
To hide some of the columns in the dropdownlist while showing, you can make use of the HideCols of the Grid through the ListControlPart object. Here is the code that can be handled in TableControlCurrentCellActivated event for your reference.
GridCurrentCell cc = e.TableControl.CurrentCell;
GridDropDownGridListControlCellRenderer rend = cc.Renderer as GridDropDownGridListControlCellRenderer;
GridDropDownGridListControlPart part = rend.ListControlPart as GridDropDownGridListControlPart;
part.DataSource = listTable();
part.DisplayMember = "State";
part.ValueMember = "City";
part.Grid.HideCols[3] = true; //code used to hide certain column in dropdownlist
Regards,
Rajadurai