Welcome Guest Search | Active Topics | Sign In | Register

Grid with subsonic Options
Paul
Posted: Thursday, June 10, 2010 5:37:53 AM
Rank: Newbie
Groups: Member

Joined: 6/10/2010
Posts: 9
Hi

I am just starting to evaluate Essential objects and have already hit a problem. I can bind a grid to a SubSonic datasource, e.g.;

Grid1.DataSource = _company;
Grid1.DataBind();

The grid appears to be bound correctly as it is showing the correct number of rows (e.g. if I select 10 rows into the datasource, the grid will have 10 rows) but NOT displaying any actual data. I have only added one column to display company name.

eo_support
Posted: Thursday, June 10, 2010 10:33:37 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Please check whether you have correctly set the GridColumns' DataField property. That property must be set in order for the Grid to display any data.

Thanks!
Paul
Posted: Thursday, June 10, 2010 10:43:41 AM
Rank: Newbie
Groups: Member

Joined: 6/10/2010
Posts: 9
Thanks, I managed to get this working
eo_support
Posted: Thursday, June 10, 2010 10:53:14 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
You are welcome. Please feel free to let us know if you have any more questions.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.