Welcome Guest Search | Active Topics | Sign In | Register

Simple populate gridview from SqlDataSource Options
MLeblanc
Posted: Tuesday, June 2, 2009 9:48:14 AM
Rank: Newbie
Groups: Member

Joined: 6/2/2009
Posts: 1
Hi!

I am a new user. I was wondering How I can populate a gridview from a SqlDataSource, like the basic asp does.

Thank you!
eo_support
Posted: Tuesday, June 2, 2009 10:43:29 AM
Rank: Administration
Groups: Administration

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

I am assuming you are asking about our Grid control (We do not provide support for the standard ASP.NET GridView control). If you use our Grid control, you will need to do this:

Code: C#
Grid1.DataSource = SqlDataSource1.Select(DataSourceSelectArguments.Empty);
Grid1.DataBind();


Also our Grid does not automatically generate columns from the data source. So you must define the columns. Please see this topic for step by step guide on how to get started with our Grid:

http://doc.essentialobjects.com/library/1/grid/start.aspx

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.