Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checkbox in a grid shows label?
Message
Information générale
Forum:
ASP.NET
Catégorie:
WebForms
Divers
Thread ID:
00776324
Message ID:
00776564
Vues:
23
Thanks! worked great.

__Stephen

>Stephen,
>
>You need to set the Checked property of the Checkbox to the DataBinder expression:
>
>
>Checked='<%# DataBinder.Eval(Container, "DataItem.Discontinued")   '
>
>
>P.S. The less-than symbol shows above as "<". Make sure you use the symbol instead.
>
>>I have a template column :
>>{Columns}
>>{asp:TemplateColumn HeaderText="Print">
>>{ItemTemplate>
>>{asp:Checkbox id="chkreleases" Runat="server" /> {%# DataBinder.Eval(Container.DataItem, "ap_noprint") '
>>{/asp:Checkbox>
>>{/ItemTemplate>
>>{/asp:TemplateColumn>
>>{asp:BoundColumn DataField="ap_part" HeaderText="PTO Model">
>>{ItemStyle Wrap="False">{/ItemStyle>
>>{/asp:BoundColumn>
>>{/Columns>
>>
>>I see a checkbox NOT checked and I see the word True' next to it? How do I get a check to apear in the checkbox and NO translation of the BIT into English?
>>
>>TIA
>>
>>__Stephen
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform