Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Accessing the Data Source of a grid
Message
De
17/07/2007 14:57:56
 
 
À
16/07/2007 14:52:34
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01240821
Message ID:
01241240
Vues:
29
>I have a dataGridView and am using a BindingSource to a DataSet to populate it.
>
>I am working in the CellFormat event and need to access a field in the datasource in order to change the image of the column. But can't figure out how to get a back to the DataSource record of the current display row.
>
>I'm a noob at this and it's probably staring me right in the face.

Kind of found an answer...

http://sadeveloper.net/forums/thread/586.aspx

Based on the last post in there, I'm using the DataGridViewCellFormattingEventArgs.RowIndex not sure if that is going to work if my grid gets sorted tho.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform