Home All Groups Group Topic Archive Search About

datagrid - do not refresh the contents in the grid

Author
9 Jun 2005 9:52 PM
Eitan M
Hello,

I have a datagrid object.
I have my own button on the grid,
but after I am doing something after clicking on the button,
I don't want to refresh the contents of the grid.
the contents of the lines on the grid are refreshed authomatically.
Can I avoid that refresh ?

Thanks :)

Author
9 Jun 2005 8:56 PM
Curt_C [MVP]
Eitan M wrote:
> Hello,
>
> I have a datagrid object.
> I have my own button on the grid,
> but after I am doing something after clicking on the button,
> I don't want to refresh the contents of the grid.
> the contents of the lines on the grid are refreshed authomatically.
> Can I avoid that refresh ?
>
> Thanks :)
>
>
get the grid building out of the page_load or exclude it from IsPostBack()

--
Curt Christianson
site: www.darkfalz.com
blog: blog.darkfalz.com
Are all your drivers up to date? click for free checkup

Author
9 Jun 2005 10:30 PM
Eitan M
> get the grid building out of the page_load or exclude it from IsPostBack()

The button should be on client side.
When clicking, I want to do alert('abc');
That's work,
but I don't want the page to be refreshed.

Thanks :)
Author
9 Jun 2005 10:35 PM
Eitan M
"Eitan M" <nospam@nospam.com> wrote in message
news:ubD8MoTbFHA.2980@TK2MSFTNGP10.phx.gbl...
>> get the grid building out of the page_load or exclude it from
>> IsPostBack()
>
> The button should be on client side.
> When clicking, I want to do alert('abc');
> That's work,
> but I don't want the page to be refreshed.
>
> Thanks :)
>

Also,
If I see the source (view source on IE 6.0),
the button's input type is "submit" (for edit/update/delete and any of
button that is on the grid).
Can I change the button type ?
Thanks :)

Bookmark and Share