Welcome Guest Search | Active Topics | Sign In | Register

Selected Row in Grid Options
Ken Ray
Posted: Sunday, May 17, 2009 11:02:37 AM
Rank: Newbie
Groups: Member

Joined: 5/17/2009
Posts: 1
How do I in vb.net determine what row and column was select and what the value is.

I don't see the properties for it

The Standard Gridview that comes with .net has SelectedIndexChanged as a property
eo_support
Posted: Sunday, May 17, 2009 11:31:57 AM
Rank: Administration
Groups: Administration

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

I am not sure if you are looking for properties to get the currented selected row and column, or a server side event that is fired when the current row/column changes. If you are just looking for the properties, you can find them here:

http://doc.essentialobjects.com/library/1/eo.web.grid.selecteditemindex.aspx
http://doc.essentialobjects.com/library/1/eo.web.grid.selectedcellindex.aspx

The Grid does not fire server side event when the current row/column changes. So there is no direct equivalent to SelectedIndexChanged. You can however handle ClientSideOnItemSelected client side event and then call raiseItemCommandEvent client side method to trigger server side ItemCommand event when user has selected the item. Here is another post that explains how this works in detail:

http://www.essentialobjects.com/forum/postst3194_Which-event-to-use-after-user-selects-another-row-of-grid.aspx#13257

Check the last post in that thread. As promised in the other thread, we are making a sample for this scenario. So please let us know if the other post sounds too complicated to you, we will make sure you receive this sample too. The actualy code is actually just a single JavaScript code call.

To get cell values, you use something like:

Code: Visual Basic.NET
obj = Grid1.Items(0).Cells(0).Value


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.