HA
haneefm
Syncfusion Team
May 24, 2007 03:09 PM UTC
Hi Dan,
You can set the style.DataSource to be the table for the entire combobox column, style.DisplayMember to be the name of the column in the table that you want to see displayed in the grid, and set style.ValueMember to be the name of the column in the table that has values that match the values originally displayed in the grid column. You also need to make it as a combobox cell. Please try the code snippet below and let me know if this helps.
this.gridGroupingControl1.TableDescriptor.Columns["List"].Appearance.AnyRecordFieldCell.CellType = "ComboBox";
this.gridGroupingControl1.TableDescriptor.Columns["List"].Appearance.AnyRecordFieldCell.DataSource = newDatatable;
this.gridGroupingControl1.TableDescriptor.Columns["List"].Appearance.AnyRecordFieldCell.ValueMember = "ColumnNameDoYouWantToseeInGrid";
this.gridGroupingControl1.TableDescriptor.Columns["List"].Appearance.AnyRecordFieldCell.DisplayMember = "ColumnNameDoYouWantTostoreInGrid";
Best regards,
Haneef
DD
Dan Dorey
May 24, 2007 03:33 PM UTC
Perfect! Thanks for the quick response.
Dan
>Hi Dan,
You can set the style.DataSource to be the table for the entire combobox column, style.DisplayMember to be the name of the column in the table that you want to see displayed in the grid, and set style.ValueMember to be the name of the column in the table that has values that match the values originally displayed in the grid column. You also need to make it as a combobox cell. Please try the code snippet below and let me know if this helps.
this.gridGroupingControl1.TableDescriptor.Columns["List"].Appearance.AnyRecordFieldCell.CellType = "ComboBox";
this.gridGroupingControl1.TableDescriptor.Columns["List"].Appearance.AnyRecordFieldCell.DataSource = newDatatable;
this.gridGroupingControl1.TableDescriptor.Columns["List"].Appearance.AnyRecordFieldCell.ValueMember = "ColumnNameDoYouWantToseeInGrid";
this.gridGroupingControl1.TableDescriptor.Columns["List"].Appearance.AnyRecordFieldCell.DisplayMember = "ColumnNameDoYouWantTostoreInGrid";
Best regards,
Haneef