Postback problems - urgent!!

Mar 25, 2008 at 11:56 PM
This is a great tool!! Been looking for this kinda control for a while..I have a small problem with postback though..
i start out with an empty gridview and i have a textbox that passes values to the sqldatasource that populates the gridview..

i enter data into the textbox, the values is passed and the gridview appears with data..but the excel control is still disabled..

it i press ENTER it now becomes enabled..whats happening?? do i have to postback TWICE before it appears?

urgent request pls!!
Mar 28, 2008 at 2:36 PM
I do not believe that you got to post back twice. I'd like to see your code to understand the sequence of events leading to that. The control basically enables or disables itself in its "PreRender" event one of the last events in the page life cycle. So if your event where you build your gridview happens anytime before that, then you should be fine.