Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Nov 28, 2012 02:47 AM by oned_gk
Member
319 Points
448 Posts
Nov 27, 2012 04:41 PM|LINK
I have a DetailsView DataBound event and a GridView RowDataBound event, using different SqlDataSources and fired from a DataList (not pageLoad).
I need data from both the DetailsView and GridView to calculate a third piece of information.
My first approach was to do the calculation in the GridViewDataBound event, but I suspect the DetailsView DataBound event has not fired yet.
Is it documented somewhere the processing sequence of events or is there an easy way to control the sequence?
Is there a better approach I should be taking?
Thanks in advance
John
All-Star
31515 Points
6433 Posts
Nov 28, 2012 02:47 AM|LINK
Force detailview1.databind and get the calculated value
john1506
Member
319 Points
448 Posts
DetailsView or GridView processing sequence
Nov 27, 2012 04:41 PM|LINK
I have a DetailsView DataBound event and a GridView RowDataBound event, using different SqlDataSources and fired from a DataList (not pageLoad).
I need data from both the DetailsView and GridView to calculate a third piece of information.
My first approach was to do the calculation in the GridViewDataBound event, but I suspect the DetailsView DataBound event has not fired yet.
Is it documented somewhere the processing sequence of events or is there an easy way to control the sequence?
Is there a better approach I should be taking?
Thanks in advance
John
oned_gk
All-Star
31515 Points
6433 Posts
Re: DetailsView or GridView processing sequence
Nov 28, 2012 02:47 AM|LINK
Force detailview1.databind and get the calculated value