Gridview

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mirainc
    New Member
    • Jul 2008
    • 34

    Gridview

    Is it possible to assign a data value from database onto a label..?
    Usually we get to see the values in a gridview BUT i want to see the value on a label..
    How can I achieve this?
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Will
    Code:
    <asp:Label id="label1" runat="server"
         Text='<%# Container.DataItem("ColumnName") %>'>
    do?

    Comment

    • Curtis Rutland
      Recognized Expert Specialist
      • Apr 2008
      • 3264

      #3
      Read these two articles:


      And if you still can't figure it out, reply again.

      Comment

      Working...