How to simply modify a GridView
Posted by: Fredrik Norméns Blog,
on 22 May 2007 |
View original | Bookmarked: 0 time(s)
There are still several of people who posts questions about changing the GridView dynamically. I will in this post explain some basics about how to change the GirdView.
When you bind data to a GridView, you can get access to the current row that is data bound by using the RowDataBound event:
VB.Net:
Protected Overridable Sub OnRowDataBound(ByVal e As GridViewRowEventArgs)
C#:
protected virtual void OnRowDataBound(GridViewRowEventArgs e);
The RowDataBound...