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:
00776374
Vues:
21
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
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform