P
peter
Hi,
I try to bind a DataTable to a DataGrid, but I receive
the following error-message :
'The IListSource does not contain any data sources'.
I have no clue what the problem might be, as I can tell that
the DataTable actually contains valid data. This is the code :
DataTable dtUserlist = new CoreTasks().selectUsers();
showContent(dtUserlist); // Proves that the DataTable contains data.
dgTasks.DataSource = dtUserlist;
dgTasks.DataBind(); // Error on this line.
I have already searched a lot on this, but to no avail.
Who can point me in the right direction ?
I try to bind a DataTable to a DataGrid, but I receive
the following error-message :
'The IListSource does not contain any data sources'.
I have no clue what the problem might be, as I can tell that
the DataTable actually contains valid data. This is the code :
DataTable dtUserlist = new CoreTasks().selectUsers();
showContent(dtUserlist); // Proves that the DataTable contains data.
dgTasks.DataSource = dtUserlist;
dgTasks.DataBind(); // Error on this line.
I have already searched a lot on this, but to no avail.
Who can point me in the right direction ?