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. problem while binding the data with gridview

problem while binding the data with gridview

Scheduled Pinned Locked Moved ASP.NET
helpwpfwcf
4 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
    hahii
    wrote on last edited by
    #1

    I have the following coding but when I build it it gives me following error public static DataFeedEntities2 entities = new DataFeedEntities2(); var type = (from p in entities.Address select p); this.GridView2.DataSource = type; this.GridView2.DataBind; ERROR:-- Only assignment, call, increment, decrement, and new object expressions can be used as a statement

    H 1 Reply Last reply
    0
    • H hahii

      I have the following coding but when I build it it gives me following error public static DataFeedEntities2 entities = new DataFeedEntities2(); var type = (from p in entities.Address select p); this.GridView2.DataSource = type; this.GridView2.DataBind; ERROR:-- Only assignment, call, increment, decrement, and new object expressions can be used as a statement

      H Offline
      H Offline
      Herman T Instance
      wrote on last edited by
      #2

      I would remove public static from the code

      In Word you can only store 2 bytes. That is why I use Writer.

      H 1 Reply Last reply
      0
      • H Herman T Instance

        I would remove public static from the code

        In Word you can only store 2 bytes. That is why I use Writer.

        H Offline
        H Offline
        hahii
        wrote on last edited by
        #3

        No it doesn't solve my problem when I remove public static from my code

        H 1 Reply Last reply
        0
        • H hahii

          No it doesn't solve my problem when I remove public static from my code

          H Offline
          H Offline
          Herman T Instance
          wrote on last edited by
          #4

          then change DataBind; in DataBind();

          In Word you can only store 2 bytes. That is why I use Writer.

          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