Welcome Guest Search | Active Topics | Sign In | Register

loop through rows in a Datagrid Options
gollnick
Posted: Thursday, November 13, 2014 12:54:35 PM
Rank: Member
Groups: Member

Joined: 11/13/2014
Posts: 15
Hello.. since ItemDataBound event does not exist I need to loop through the grid AFTER it gets binded. I am looking for an example in VB of this process. I can not find one. Is there one? Server side in the code behind.

Thanks

gollnick
eo_support
Posted: Thursday, November 13, 2014 2:07:10 PM
Rank: Administration
Groups: Administration

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

You would loop through this collection:

http://www.essentialobjects.com/doc/1/eo.web.grid.items.aspx

In the future you will want to familiar yourself with the reference section of the documentation. As you can see, there are numerous properties/methods available, and the reference section will tell you what is available to you and which is for what.

Thanks!
gollnick
Posted: Thursday, November 13, 2014 4:57:47 PM
Rank: Member
Groups: Member

Joined: 11/13/2014
Posts: 15
While this is nice.. I am a visual learner. I have this
ForEach Name( di ) Type( eo.Web.GridItemCollection ) Collection( DEVGRID.Items)
Dm_CustomerId = di.Item(01).Cells.ToString()
EndFor
which compiles but never enters into the loop. I know there are 19 items in the collection.
I looked in your sample code and nowhere is the GridItemCollection used. I would like to SEE it please. Once I see it I'll never have to ask for it again. Sort of like teaching a man to fish...

gollnick
eo_support
Posted: Thursday, November 13, 2014 5:18:18 PM
Rank: Administration
Groups: Administration

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

We are not in a position to review your code or show you how to loop through a collection. These are some basic generic .NET programming questions that you need to resolve through other channels.

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.