T
Trapulo
Hello,
I need to use a checkBoxList as control in an editTemplate of a gridview. I
can insert it, and bind data. I have a lot of trouble handling selection of
data and updating it.
Basically, the gridview manages some records binded to an objectDataSource,
and I need to update/insert data. I have some standard columns (strings,
numeric, etc.) , and a lot of "bit" columns, so I want to render them as
options in a single checkesboxlist instead of a lot of different checkbox
columns.
This is my template:
<EditItemTemplate>
<asp:CheckBoxList ID="clbServices" runat="server" EnableViewState="false">
</asp:CheckBoxList>
</EditItemTemplate>
Then I bind data from gridview's rowDataBound event, calling
checkedboxList.Items.Add and setting the "Selected" property, and all works.
I cannot retrieve selected data to set parameters for the update.
Any suggestion to have this goal?
thanks
I need to use a checkBoxList as control in an editTemplate of a gridview. I
can insert it, and bind data. I have a lot of trouble handling selection of
data and updating it.
Basically, the gridview manages some records binded to an objectDataSource,
and I need to update/insert data. I have some standard columns (strings,
numeric, etc.) , and a lot of "bit" columns, so I want to render them as
options in a single checkesboxlist instead of a lot of different checkbox
columns.
This is my template:
<EditItemTemplate>
<asp:CheckBoxList ID="clbServices" runat="server" EnableViewState="false">
</asp:CheckBoxList>
</EditItemTemplate>
Then I bind data from gridview's rowDataBound event, calling
checkedboxList.Items.Add and setting the "Selected" property, and all works.
I cannot retrieve selected data to set parameters for the update.
Any suggestion to have this goal?
thanks