Ask a Question related to ASP.NET Data Grid Control, Design and Development.
-
JemPower #1
Header Controls
Hi All,
Can someone help me with what I believe could be a simple answer. I've
created a datagrid, of which I have a template column containing checkboxes.
What I want to achieve is a checkbox in the header, so that when clicked,
checks all the checkboxes in the grid. I'm having a lot of difficulty even
placing the checkbox in the header!
Has anyone got an example of how I can do this please?
Many thanks,
JemPower Guest
-
Control.Controls bug? Control's child controls missing at the run time.
Hello, ..NET 1.1/VB.NET: I have a custom web control Public Class DatePicker Inherits Control Implements INamingContainer -
Why the properties of web user controls which inherted from my custom base UI controls MISSED?
Why the properties of web user controls which inherted from my custom base UI controls MISSED? How should I to set enable? -
user controls: dynamiclly added child controls dont survive post back ?
hi, i have some strange behaviour: i've created a web user control that add's some child controls (e.g: textbox, image buttons) to its control... -
Server Controls in header file
Hi, I have files called header.ascx and footer.ascx which are included in pages by a class that inherits System.Web.UI.Page and overides OnInit.... -
how to check controls that on datagrid header
Anyone know why when I loop thru my datagrid item list I don't see my header or footer? I only see the item and alternatingitem types. The footer... -
Josh Behl #2
Re: Header Controls
If you go to [url]www.datagridgirl.com[/url] you'll find a control there that she
developed. It is pretty good.
"JemPower" <noemailspecified> wrote in message
news:exEH$3fnDHA.2000@TK2MSFTNGP12.phx.gbl...checkboxes.> Hi All,
>
> Can someone help me with what I believe could be a simple answer. I've
> created a datagrid, of which I have a template column containingeven>
> What I want to achieve is a checkbox in the header, so that when clicked,
> checks all the checkboxes in the grid. I'm having a lot of difficulty> placing the checkbox in the header!
>
> Has anyone got an example of how I can do this please?
>
> Many thanks,
>
>
>
Josh Behl Guest
-
Cathie #3
Re: Header Controls
I had a similar problem and found it was easier using a image button,
swapping the image between checked and unchecked when clicked. This way you
can use "ItemCommand" to handle the event and if you place say "SelectAll"
in the header image button (check box) command name then it should be easy
to find. In your handler all you have to do is check for e.CommandName ==
"SelectAll" and cycle through your check boxes checking/unchecking as
required.
Cathie
"JemPower" <noemailspecified> wrote in message
news:exEH$3fnDHA.2000@TK2MSFTNGP12.phx.gbl...checkboxes.> Hi All,
>
> Can someone help me with what I believe could be a simple answer. I've
> created a datagrid, of which I have a template column containingeven>
> What I want to achieve is a checkbox in the header, so that when clicked,
> checks all the checkboxes in the grid. I'm having a lot of difficulty> placing the checkbox in the header!
>
> Has anyone got an example of how I can do this please?
>
> Many thanks,
>
>
>
Cathie Guest
-
JemPower #4
Re: Header Controls
Many thanks for the help, now sorted. Quite easy I guess when you think
about it
"Cathie" <someone@miscrosoft.com> wrote in message
news:#xj9f7rnDHA.1672@TK2MSFTNGP09.phx.gbl...you> I had a similar problem and found it was easier using a image button,
> swapping the image between checked and unchecked when clicked. This wayclicked,> can use "ItemCommand" to handle the event and if you place say "SelectAll"
> in the header image button (check box) command name then it should be easy
> to find. In your handler all you have to do is check for e.CommandName ==
> "SelectAll" and cycle through your check boxes checking/unchecking as
> required.
>
> Cathie
>
> "JemPower" <noemailspecified> wrote in message
> news:exEH$3fnDHA.2000@TK2MSFTNGP12.phx.gbl...> checkboxes.> > Hi All,
> >
> > Can someone help me with what I believe could be a simple answer. I've
> > created a datagrid, of which I have a template column containing> >
> > What I want to achieve is a checkbox in the header, so that when> even> > checks all the checkboxes in the grid. I'm having a lot of difficulty>> > placing the checkbox in the header!
> >
> > Has anyone got an example of how I can do this please?
> >
> > Many thanks,
> >
> >
> >
>
JemPower Guest



Reply With Quote

