Hello, I have two models in Grid. One with a foreign key. What I want to do is combine the values of a field from the first pattern in a column and a field from the model with a foreign key into one arm. In other words, if the value is "A" in the relevant column in the first model, and the value is "B" in the model with a foreign key, it will appear as "AB" in this column. How can I do?
PSPrathap Senthil Syncfusion Team April 17, 2023 04:48 PM UTC
Regarding your query about displaying "AB" in a column when the value
is "A" in the relevant column in the first model and "B" in
the model with a foreign key, you can achieve this using the Template column
feature. Please refer to the attached code snippet and sample for your
reference. Please get back to us if you face any difficulties.
var a = (context asOrder);
var data = Employees.Where(x
=> x.EmployeeID ==a.EmployeeID).ToList();