Welcome Guest Search | Active Topics | Sign In | Register

Add records to grid at runtime Options
Rashmi
Posted: Monday, November 3, 2008 12:57:43 AM
Rank: Member
Groups: Member

Joined: 9/9/2008
Posts: 7

Hi,

On a page i have a listbox, an eo:grid and a button. Listbox contains a list of users. A user is selected from the listbox (multiple selection is allowed) and on clicking on the button, the grid should be populated with the user name and his email with a Remove button.
I have written a query which will fetch the user name and email in a DTO. An arraylist contains the DTOs.
How should I populate the grid with the values???


Thanks,
Rashmi
eo_support
Posted: Monday, November 3, 2008 8:15:14 AM
Rank: Administration
Groups: Administration

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

This page contains detailed information about how to populate the Grid:

http://www.essentialobjects.com/ViewDoc.aspx?t=Grid%2fdata_binding.html

You can also call this method to create a single GridItem:

http://www.essentialobjects.com/ViewDoc.aspx?t=EO.Web.Grid.CreateItem.html

Then call Grid.Items.Add to add that newly created item into the Grid's item collection.

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.