Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. [Message Deleted]

[Message Deleted]

Scheduled Pinned Locked Moved ASP.NET
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    harissssss
    wrote on last edited by
    #1

    [Message Deleted]

    Y 1 Reply Last reply
    0
    • H harissssss

      [Message Deleted]

      Y Offline
      Y Offline
      YazhiniP
      wrote on last edited by
      #2

      No need to write query for each template field.    Just mention the DataSource in the asp:GridView tag and define the DataSource seperately..    U can assign the respective column value to each template field using the following method. <asp:TemplateField HeaderText="Status"> <ItemTemplate>    <asp:Label ID="lblStatus" runat="server" Text=<%# Eval("Column name") %> /> </ItemTemplate> </asp:TemplateField> U can also specify the DataSource in cs file as following if u use datatable/dataset as datasource.    Gridviewname.DataSource= DataTablename/DataSetName;    Gridviewname.DataBind();

      Yazhini

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups