L
LiFo
hi
i have a datagrid and one colume is a bool
if i use a normal asp:BoundColumn is shows as true or false
and i want it to show as a checkbox
but if i use a asp:TemplateColumn as this
<asp:TemplateColumn>
<HeaderTemplate>
<b>Aktiv</b>
</HeaderTemplate>
<ItemTemplate>
<asp:CheckBox Runat="server" ID="checkbox" ></asp:CheckBox>
</ItemTemplate>
</asp:TemplateColumn>
i only get a checkbox how do i bind the data to the checkbox
and i also want it to only bee able to check the box when it is in edit mode
i have a datagrid and one colume is a bool
if i use a normal asp:BoundColumn is shows as true or false
and i want it to show as a checkbox
but if i use a asp:TemplateColumn as this
<asp:TemplateColumn>
<HeaderTemplate>
<b>Aktiv</b>
</HeaderTemplate>
<ItemTemplate>
<asp:CheckBox Runat="server" ID="checkbox" ></asp:CheckBox>
</ItemTemplate>
</asp:TemplateColumn>
i only get a checkbox how do i bind the data to the checkbox
and i also want it to only bee able to check the box when it is in edit mode