jared
2/25/2004 6:44:00 PM
Simon wrote:
> Hi Angela.
>
> Thanks for your reply. However, that is what I've already done, and what doesn't work. I have two pages with DataGrids containing PushButtons: one works, one doesn't. Working one was done 3 months ago, non-working was done last week.
>
> It appears that either a) the function is not called by the event or b) the event does not fire. (or c - something I've missed??)
>
> It is baffling, and a big pain for such a simple task: display data, select one.
>
> Simon.
>
Hi Simon,
I had a similar problem and searched the web and found that if you
databind the datagrid in the Page_Load method each time, it would work
with a LinkButton but not with a PushButton. The solution that I found
was to put the databinding in the Page_Load event, but only if it was
not a PostBack (c#: !IsPostBack). Then it worked fine.
If you would like the whole explanation, you can find it on the forums
of www.asp.net.
Jared