Skip to content

DevExpress-Examples/blazor-grid-foreignkey-column

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blazor Grid - Create a ComboBox (Foreign Key) Column

As you know, a foreign key is a database key used to manage relationships between individual tables. You can use the key to identify a specific column in a referenced table (and obtain column data). This example illustrates the use of foreign keys within the DevExpress Blazor Grid UI component.

Grid with ComboBox column

To create a foreign key column in the DevExpress Blazor Grid component, you must:

  1. Add a DxGridDataColumn object to the Grid's column collection.
  2. Assign the field name that stores foreign keys to the column's FieldName property.
  3. Place DxComboBoxSettings within the column's EditSettings tag.
  4. Assign an external data source to the Data combo box setting.
  5. Assign the name of the external data source field that stores foreign keys to the ValueFieldName setting. The TextFieldName setting allows you specify text strings displayed within the Grid (instead of foreign keys).

Files to Review

Documentation

More Examples

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)