Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Selecting a row in a DataGridView
Message
De
31/10/2007 11:40:35
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Selecting a row in a DataGridView
Divers
Thread ID:
01265409
Message ID:
01265409
Vues:
52
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform