0

I have a GridView which is bound to a data source. I want to modify values of one column while GridView is being displayed.

For e.g. there is column called "NumID" whose value I want to modify at runtime.

Which GridView event shall I use for this purpose?

2
  • Thanks. You should post it as answer so I can accept it. Jun 24, 2015 at 7:50
  • i have added as answer also Jun 24, 2015 at 7:59

1 Answer 1

0

Use GridView.RowDataBound Event

This event Occurs when a data row is bound to data in a GridView control.

The RowDataBound event is raised when a data row (represented by a GridViewRow object) is bound to data in the GridView control.

This enables you to provide an event-handling method that performs a custom routine, such as modifying the values of the data bound to the row, whenever this event occurs.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.