Welcome Guest Search | Active Topics | Sign In | Register

Set fixed rows count in EO.Web Grid Options
CPT Group
Posted: Wednesday, February 19, 2020 1:20:42 PM
Rank: Newbie
Groups: Member

Joined: 2/19/2020
Posts: 6
Hello,

How do I set the number of rows for the EO.Web Grid?

I want to set the row count to 3 for the EO.Web Grid. I only want 3 rows for data entry.
eo_support
Posted: Thursday, February 20, 2020 2:50:03 PM
Rank: Administration
Groups: Administration

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

EO.Web Grid rows are always populated from a data source. So you would not control the number of rows for the Grid directly. Instead you would control the number of items in your data source. If you do not care about any data source. You can simply do something like this:

Code: C#
Grid1.DataSource = new object[3];
Grid1.DataBind();


This will create 3 empty rows because the data source is an array with 3 elements.

Hope this helps.

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.