Hello,
I need a little bit help.
I have a GGC bind to my database maintable. In the maintable are many columns with IDs and in the other db-tables are the displaymembers.
I use this to connect the both tables:
gridGroupingControlVehicle.TableDescriptor.Columns["GlobalStatus"].Appearance.AnyRecordFieldCell.CellType = GridCellTypeName.GridListControl;
gridGroupingControlVehicle.TableDescriptor.Columns["GlobalStatus"].Appearance.AnyRecordFieldCell.DataSource = _status;
gridGroupingControlVehicle.TableDescriptor.Columns["GlobalStatus"].Appearance.AnyRecordFieldCell.DisplayMember = "Status";
gridGroupingControlVehicle.TableDescriptor.Columns["GlobalStatus"].Appearance.AnyRecordFieldCell.ValueMember = "VehicleStatusId";
gridGroupingControlVehicle.TableDescriptor.Columns["GlobalStatus"].Appearance.AnyRecordFieldCell.ShowButtons = GridShowButtons.Hide;
But when I click on the header of a column it sorts by the ID and not by the displaymember. Is there a way to expand my code to sort by displaymember?
I think I have 10 IDs in my maintable with 10 different (sub-)tables in my database.
Thanks for your support
Thomas