Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accessing the Data Source of a grid
Message
From
17/07/2007 14:57:56
 
 
To
16/07/2007 14:52:34
General information
Forum:
ASP.NET
Category:
Forms
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01240821
Message ID:
01241240
Views:
27
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform