problem in binding business list to the datagrid

problem in binding business list to the datagrid

Old forum URL: forums.lhotka.net/forums/t/4676.aspx


fastianumair posted on Friday, April 11, 2008

I am having problem in binding list to the Datagrid in windows application. my business list clas(CustomerList) is a csla BusinessList and data has been populated in the list(that i have checked) but when i bind the list with the DataGrid, it shows some rows but they are empty.

why is it happenning? how to resolve this?

thanks.

regards,

Umair.

sergeyb replied on Friday, April 11, 2008

Did you configure the columns for the grid?

 

Sergey Barskiy

Senior Consultant

office: 678.405.0687 | mobile: 404.388.1899

cid:_2_0648EA840648E85C001BBCB886257279
Microsoft Worldwide Partner of the Year | Custom Development Solutions, Technical Innovation

 

From: fastianumair [mailto:cslanet@lhotka.net]
Sent: Friday, April 11, 2008 8:13 PM
To: Sergey Barskiy
Subject: [CSLA .NET] problem in binding business list to the datagrid

 

I am having problem in binding list to the Datagrid in windows application. my business list clas(CustomerList) is a csla BusinessList and data has been populated in the list(that i have checked) but when i bind the list with the DataGrid, it shows some rows but they are empty.

why is it happenning? how to resolve this?

thanks.

regards,

Umair.



stefan replied on Saturday, April 12, 2008

Maybe CanReadProperty(<YourPropertyNameString>) ist returning false for each property in your customer object (the item type inside your CustomerList).

Look at the AddAuthorizationRules call...
The current user might not be allowed to read the properties,
and the property getters probably are all returning String.Empty.

This results in the list being display as empty rows

Stefan

Copyright (c) Marimer LLC