The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I want to change foreign key reference in my table by values from referenced table and display referenced table.
My sample is taken from Syncfusion Grid.Grouping samples. It tries to do functionality, implemented above, but problem is that each foreign key column is multipled by referenced table column count (every referenced table separate column is displayed in each of them). I need to have some value from the referenced table displayed instead of foreign key value.
//dataTable.Columns[0]. // and then add a few rows: for ( int i=1; i < 10000; i++ ) { DataRow newRow=dataTable.NewRow(); dataTable.Rows.Add(newRow); newRow[0] = i; //Key newRow[1] = "Hipopotamus"+i.ToString(); newRow[2] = "Monkey" + i.ToString(); } _dataSet.Tables.Add(dataTable);
ADAdministrator Syncfusion Team September 2, 2006 11:14 PM UTC
I do not understand what you are describing as not working for you. Here is a sample based on the code you showed. What do you want to see different in the sample?
In grid it is necessary to display only one field from table "TestTable" ("Name" or "Name2")...
ADAdministrator Syncfusion Team September 5, 2006 12:32 PM UTC
No. The sample in the previous post displays both the Name and Name2 columns.
By Default, all columns in the lookup table (except the actual mapped indexed column) appear in the main grid. You have to explicilty hide the ones you do not want to see.