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
60
Rows not shown when grid.DataSource is set to List<DbDataRecord>
posted

Hello everybody,

I manually set a WinGrid's DataSource like this:

List<System.Data.Common.DbDataRecord> list = GimmeList();
grid.DataSource = list;

Although list is != null and list.Count is > 0, no rows are shown in the grid. I've tried to use grid.Refresh() without success.

I'm sucessfully using a similar code snippet on the same grid with a List<T>, where T is an entity from my EF-edmx-model.

Does anybody know, why the List<DbDataRecord> behaves different from a List<T> in this situation?

Thanks in advance

Jan C. Potthoff