JJ
Jisha Joy
Syncfusion Team
August 13, 2009 08:58 AM UTC
Hi Santosh,
Thankyou for posting query to us.
The desired behavior can be achieved by specifying the DropDownStyle to GridDropDownStyle.Exclusive. See the code to set GridListControl celltype to the grid column, setting datasource to it and setting the DropDownStyle.
this.gridGroupingControl1.TableDescriptor.Columns[2].Appearance.AnyRecordFieldCell.CellType = "GridListControl";
this.gridGroupingControl1.TableDescriptor.Columns[2].Appearance.AnyRecordFieldCell.DataSource = GetTable1();
this.gridGroupingControl1.TableDescriptor.Columns[2].Appearance.AnyRecordFieldCell.DisplayMember = "ID";
this.gridGroupingControl1.TableDescriptor.Columns[2].Appearance.AnyRecordFieldCell.ValueMember = "ID";
this.gridGroupingControl1.TableDescriptor.Columns[2].Appearance.AnyRecordFieldCell.DropDownStyle = Syncfusion.Windows.Forms.Grid.GridDropDownStyle.Exclusive;
Please let me know if this helps.
Regards,
Jisha