locked
How to fix length of label inside itemtemplate of datagrid RRS feed

  • Question

  • User-971915141 posted

    Hi All,

    I am new to Asp.net ... , and got stucked in fixing up length of a Label control which is placed inside datagrid. and i don't want to put code on my Itemdatabound events of datagrid . Is it possible to set length for label between item templates in HTML only.

     Plz Help ..

    Friday, November 23, 2007 8:15 AM

Answers

  • User-217808514 posted

    Should be:

     

      <ItemTemplate>
        <asp:Label Text="Some Text" ID="myLabel" Width="100" Runat="Server"/>
      </ItemTemplate>
      
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, November 23, 2007 9:38 AM