Localizing BoundFields

Discussion in 'ASP .Net' started by helveticus, Dec 2, 2008.

  1. helveticus

    helveticus Guest

    I am having difficulties to localize BoundFields of a gridview
    embedded in a usercontrol (usr1.ascx). I tried various variants of the
    markup below w/o success. What is the correct syntax? TIA for any
    hints.

    <asp:GridView ID="gvwItems" runat="server" ...>
    <Columns>
    <asp:BoundField DataField="ProdTitle" meta:resourcekey="ProdTitle"
    ></asp:BoundField>

    ...
    </Columns>
    </asp:GridView>

    where the keys associated to ProdTitle are respectively:
    usr1.ascx.resx: Item; usr1.ascx.FR.resx: Sujet
     
    helveticus, Dec 2, 2008
    #1
    1. Advertisements

  2. helveticus

    helveticus Guest

    I found a work-around by setting: HeaderText="<%$
    Resources:StoreViewcart.ascx, ProdTitle%>"
     
    helveticus, Dec 2, 2008
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Christina

    How do I Email DetailsView BoundFields

    Christina, Dec 8, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    432
    Christina
    Dec 8, 2006
  2. ami
    Replies:
    0
    Views:
    354
  3. JB
    Replies:
    3
    Views:
    2,148
    Alexey Smirnov
    Oct 21, 2009
  4. jonefer

    Dynamically boundfields aren't really dynamic

    jonefer, May 23, 2007, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    782
    jonefer
    May 23, 2007
  5. Pete

    Converting BoundFields from tags to code

    Pete, Sep 17, 2007, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    203
Loading...

Share This Page