Access User Control gridview
i got a user control that has a gridview with a checkbox in it.
<cc1 agingGridView ID="gvDataNoBind" runat="server" CellPadding="4" ForeColor="#333333"
GridLines="None" AutoGenerateColumns="False" AllowPaging="true"
OnPageIndexChanging="gvData_PageIndexChanging" OnRowDataBound="gvData_RowDataBound">
<PagerStyle CssClass="Altlabel" HorizontalAlign="Center" />
<HeaderStyle CssClass="subheader"/>
<AlternatingRowStyle CssClass="Altlabel" />
<RowStyle CssClass="GridviewRowStyle" />
<AlternatingRowStyle CssClass="GridviewRowAlterStyle" />
<PagerSettings Mode="NumericFirstLast" Position="bottom" />
<Columns>
<asp:TemplateField HeaderText="Select">
<ItemTemplate>
<asp:CheckBox ID="chkData" runat="server" Enabled="true" />
</ItemTemplate>
</asp:TemplateField>
</Columns>
</cc1 agingGridView>
i have this control on a webform. here is my issue, i have added a select all button and remove all button on the webform below the control above.
how could i access the checkbox above on the select all button event to make all values checked and likewise with remove all?
thank you so much for the help..
|