Link to home
Start Free TrialLog in
Avatar of dkim18
dkim18

asked on

Does SqlDataSource.DataBind() call RowDataBound again??

Hi,

I have a GridView using SqlDataSource.
I also have this RowDataBound method in wich I change the color of row after checking the value in a cell.

I have this commandbutton which will run the updae method which updates the value of that cell I use to change the color of the row.

After the I click the button to call the update, I need to refresh the GridView which in turn I am hoping it would call the RowDataBound method in which it changes the color of the row.

It looks like the RowDataBound is called once when the page is loaded.
How can I call that method again??

I tried the calling the sqldatasource.Databind() but it didn't call the rowdatabound.
Thanks much.
ASKER CERTIFIED SOLUTION
Avatar of Salim Fayad
Salim Fayad
Flag of Lebanon image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dkim18
dkim18

ASKER

Came a little too late.
You got it.
I got confused with the SqlDataSource.DataBind with the GridView.DataBind.
Thanks anyway.