Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Selecting a row in a DataGridView
Message
From
31/10/2007 11:40:35
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Selecting a row in a DataGridView
Miscellaneous
Thread ID:
01265409
Message ID:
01265409
Views:
50
Hi all,

I have a web page (Mere Mortals) with a DataGridView bound to a Biz Obj. I also have several text boxes on the page that are bound to the same biz obj and columns of the entity object. What I want to end up with is the textboxes to show the values from the selected row of the datagrid. In other words when the user selects a row in the dataGrid, I want to refresh the textboxes so they show the current row.

For some reason I have tried a couple of methods to allow the user to select a row with a link field and also a command button but I never seem to actually obtain the value of that field. It also appears that even if a row is selected in the grid the pointer is not moved in the EntityList.

My Questions:
How can I obtain the value of the pk of the selected row of the bound datagridview?
How can I get the EntityList to be navigated to this row?
How can I cause the textboxes to refresh their binding to show the current entity?

Thanks for any help
Tim
How come sometimes it is the seemingly easy things that get hard.
Timothy Bryan
Next
Reply
Map
View

Click here to load this message in the networking platform