Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataBound GridView - accessing fields in RowBound method
Message
General information
Forum:
ASP.NET
Category:
Other
Environment versions
OS:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
01310810
Message ID:
01328585
Views:
7
>Cast it to the object type, then reference it's properties directly, ex. instead of DataRowView view = e.Row.DataItem as DataRowView, change "DataRowView" to the true object type. Then use view.PropertyName to access it.

I already changed it yesterday to use Cells (I only have 3 fields in the grid). Do you think it's better to just leave it as is?

Thanks again.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform