Wednesday, August 11, 2010

How to edit a field data while retrieving them from a gridview in asp.net?

I used the gridview to get data from database with something like this:


%26lt;%#Eval(';Author';)%%26gt;


I want to convert Author to first name and lastname. the authors are in another table or something like that.





how can i edit %26lt;%#Eval(';Author';)%%26gt; data through code, before displaying itHow to edit a field data while retrieving them from a gridview in asp.net?
You can accomplish this through writing code in the RowDataBound event of the GridView.





The code you write there will execute once for each row in the GridView.





Here are some examples


http://msdn2.microsoft.com/en-us/library鈥?/a>

No comments:

Post a Comment