Hello there,
we have troubles binding a datasource properly:We pre-define a Data-Schema with the fields we'd like to get displayed.
Then we create an List per linq, something like this:
var employees = _context.Employees.Include("test").Where( s => s.Company_Name == "test123").ToList();
So we have 2 tables, Employees and test. Then:
this.grdData.DataSource = employees; grdData.DataBind();
We tried the databind function as well, but everytime set it, then grid columns get overwritten by the columns in the datasource. So the predefined Schema is ignored.
We found some examples, but all of them are working with DataTables. So we can't just set the name of the DataSource like in:http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=6702
Is it even possible to bind like this? Since we have dynamic sources, we just want to show some columns.
Thanks for your response.
Matthias
Hello ARGUSnet_00,
Thank you for contacting infragistics. Can you attach a sample to further investigate your issue?
Hello Michael
we had a lucky punch: The programmer did not set the keys of the columns proper. Interesting enought, datagrid chooses to ignore them completely and just adds the owns.
Whatever problem solved.
Thanks!