0

Helllo there
I am new to programming
i am trying to update my checkbox column in a gridview (asp.net)which i cont
I can able to get the data 1 or 0 in database and able to update the checkbox as checked or unchecked
my code is

<asp:TemplateField HeaderText="Available" SortExpression="Available">
                <EditItemTemplate>
                    <asp:CheckBox Id="chkSelect" Checked='<%# ConvertToBool(Eval("Available")) %>' Runat="Server" />
                     </EditItemTemplate>
                <ItemTemplate>
                    <asp:CheckBox Id="chkSelect" Checked='<%# ConvertToBool(Eval("Available")) %>' Runat="Server" />
                    </ItemTemplate>
            </asp:TemplateField>

please help in this bug i am scratching my head for last 3 days
thanks in advance

Edited by __avd: Added [code] tags.

2
Contributors
5
Replies
6
Views
6 Years
Discussion Span
Last Post by __avd
0

thanks for replying
i got the the control ID must be unique thing

but i am a bit confuse with Find control method can you please explain....

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.