G
Guest
Hi, all
I got a question again. I have a DateGrid in my aspx page which I want
implement a mailbox like yahoo mail.
The first column I defined like this:
<Columns>
<asp:TemplateColumn HeaderText="Select">
<HeaderStyle Width="10px"></HeaderStyle>
<ItemStyle HorizontalAlign="Center"></ItemStyle>
<HeaderTemplate>
<asp:CheckBox id="CheckBoxAll" runat="server"></asp:CheckBox>
</HeaderTemplate>
<ItemTemplate>
<asp:CheckBox id="CheckBoxMsg" runat="server"></asp:CheckBox>
</ItemTemplate>
</asp:TemplateColumn>
......
So the CheckBoxAll on header will make all CheckBoxMsg to checked if we
check it. I don't know how to do this. Becuase there is no event for
CheckBoxAll in DataGrid.Probably I need to play with some script to do this.
Does anyone know how to do this or have a better idea?
Thanks
I got a question again. I have a DateGrid in my aspx page which I want
implement a mailbox like yahoo mail.
The first column I defined like this:
<Columns>
<asp:TemplateColumn HeaderText="Select">
<HeaderStyle Width="10px"></HeaderStyle>
<ItemStyle HorizontalAlign="Center"></ItemStyle>
<HeaderTemplate>
<asp:CheckBox id="CheckBoxAll" runat="server"></asp:CheckBox>
</HeaderTemplate>
<ItemTemplate>
<asp:CheckBox id="CheckBoxMsg" runat="server"></asp:CheckBox>
</ItemTemplate>
</asp:TemplateColumn>
......
So the CheckBoxAll on header will make all CheckBoxMsg to checked if we
check it. I don't know how to do this. Becuase there is no event for
CheckBoxAll in DataGrid.Probably I need to play with some script to do this.
Does anyone know how to do this or have a better idea?
Thanks