Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1175
Binding EF-datasource with predefined Schema
posted

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

Parents
  • 29105
    Offline posted

    Hello ARGUSnet_00,

    Thank you for contacting infragistics. Can you attach a sample to further investigate your issue?

     

Reply Children
No Data