BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
this.gridGroupingControl1.TableDescriptor.Columns["Col"].Appearance.AnyRecordFieldCell.CellType = "ComboBox";
this.gridGroupingControl1.TableDescriptor.Columns["Col"].Appearance.AnyRecordFieldCell.DataSource = someDataTable;
this.gridGroupingControl1.TableDescriptor.Columns["Col"].Appearance.AnyRecordFieldCell.DisplayMember = "displayCol";
this.gridGroupingControl1.TableDescriptor.Columns["Col"].Appearance.AnyRecordFieldCell.ValueMember = "valueCol";
(If you set Appearance.RecordFieldCell and Appearance.AlternateRecordFieldCell properties, you would have to set teh above code on those appearances instead.)
But if youwant to sort or group this foriegn key column, then you have to use a relation.RelationKind.ForeignKeyReference to make this work. Here is a sample. http://www.syncfusion.com/Support/user/uploads/GGC_ForeignKeyReference_f47ce2d2.zip
GriddataBoundGrid:
1) Try code like this:
this.gridDataBoundGrid1.Binder.InternalColumns["Col1"].ReadOnly = true; //if you have not added GridBoundColumns
this.gridDataBoundGrid1.GridBoundColumns["Col1"].ReadOnly = true; //if you have added GridBoundColumns
2) This is a bug. It is corrected in our latest release, 3.2.1.0.
3) The default cell type is "TextBox" and this uses a RichTextBox which does not support password characters. If you change the on this column from "TextBox" to "OriginalTextBox", then a Windows Forms TextBox control will be used in the column and it does support PassWord characters.
this.gridDataBoundGrid1.Binder.InternalColumns["Col1"].CellType = "OriginalTextBox"; //if you have not added GridBoundColumns
this.gridDataBoundGrid1.GridBoundColumns["Col1"].CellType = "OriginalTextBox"; //if you have added GridBoundColumns
4) The only option is to use the DataSource/DisplayMember/ValueMember with a "ComboBox" CellType (as mentioned in 2 for GridGroupingControl). This sample shows how you can do this all from the designer. (Take a look at the designer generated code to see what was done.) \Syncfusion\Essential Suite\3.0.1.0\Windows\Grid.Windows\Samples\DataBound\GDBGcombos