Home All Groups Group Topic Archive Search About

GridView Rows collection refresh within an event

Author
15 Apr 2005 2:08 PM
Shafia
Hi,

I need to refresh the Rows collection of my GridView  within a tree  event
OnCheckChanged. I call the following for that

void OnCheckChanged(....)

{

    ...................

   ObjectDataSource1.Select();

    GridView1.DataSourceID = "ObjectDataSource1";

    ...........................

}

But it always refreshes the Grid after the event is finished. What can I do
to refresh it within the event?



Thanks,

Shafia

Author
15 Apr 2005 11:49 PM
Alvin Bruney [MVP - ASP.NET]
Isn't that whidbey stuff? it's better served in the whidbey newsgroup

--
Regards,
Alvin Bruney - ASP.NET MVP

[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
Now available @ www.lulu.com/owc
Show quoteHide quote
"Shafia" <sbat***@ultimus.com> wrote in message
news:O5eooScQFHA.3496@TK2MSFTNGP09.phx.gbl...
> Hi,
>
> I need to refresh the Rows collection of my GridView  within a tree  event
> OnCheckChanged. I call the following for that
>
> void OnCheckChanged(....)
>
> {
>
>    ...................
>
>   ObjectDataSource1.Select();
>
>    GridView1.DataSourceID = "ObjectDataSource1";
>
>    ...........................
>
> }
>
> But it always refreshes the Grid after the event is finished. What can I
> do
> to refresh it within the event?
>
>
>
> Thanks,
>
> Shafia
>
>
>
Author
16 Apr 2005 11:41 AM
Brock Allen
> Isn't that whidbey stuff? it's better served in the whidbey newsgroup

Which group is that BTW? The [not so private] private NGs got a post the
other day saying they were going away in 2 weeks time. Someone else posted
about a microsoft.beta.* NG, but I could't find it. Is there another NG I
don't know about?

-Brock
DevelopMentor
http://staff.develop.com/ballen
Author
17 Apr 2005 2:51 AM
Alvin Bruney [MVP - ASP.NET]
you might be right

--
Regards,
Alvin Bruney - ASP.NET MVP

[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
Now available @ www.lulu.com/owc
Show quoteHide quote
"Brock Allen" <ballen@NOSPAMdevelop.com> wrote in message
news:483930632492340963634288@msnews.microsoft.com...
>> Isn't that whidbey stuff? it's better served in the whidbey newsgroup
>
> Which group is that BTW? The [not so private] private NGs got a post the
> other day saying they were going away in 2 weeks time. Someone else posted
> about a microsoft.beta.* NG, but I could't find it. Is there another NG I
> don't know about?
> -Brock
> DevelopMentor
> http://staff.develop.com/ballen
>
>
>