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. General Programming
  3. Visual Basic
  4. GridView Problem

GridView Problem

Scheduled Pinned Locked Moved Visual Basic
helptutorial
3 Posts 3 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.
  • S Offline
    S Offline
    soniasan
    wrote on last edited by
    #1

    Hi to all, In Gridview i added the text as No Data Found in EmptyDataText Property of a gridview. it is working fine when there is no data it should display that message but initially when page is displayed that time No data found is displayed which should not happen. When we select Territory Name & Click on View Button that time that gridview is display and shows all territories if not available then No Data Found . Please suggest me how to solve this gridview problem

    M D 2 Replies Last reply
    0
    • S soniasan

      Hi to all, In Gridview i added the text as No Data Found in EmptyDataText Property of a gridview. it is working fine when there is no data it should display that message but initially when page is displayed that time No data found is displayed which should not happen. When we select Territory Name & Click on View Button that time that gridview is display and shows all territories if not available then No Data Found . Please suggest me how to solve this gridview problem

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #2

      Why not set the emptydatatext property at runtime then you control the information it displays.

      Never underestimate the power of human stupidity RAH

      1 Reply Last reply
      0
      • S soniasan

        Hi to all, In Gridview i added the text as No Data Found in EmptyDataText Property of a gridview. it is working fine when there is no data it should display that message but initially when page is displayed that time No data found is displayed which should not happen. When we select Territory Name & Click on View Button that time that gridview is display and shows all territories if not available then No Data Found . Please suggest me how to solve this gridview problem

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        If you set this property at design-time, then run your app, of course this is going to be displayed before you bind the grid to a dataset. Set the property only after you do a fetch and return no, or incomplete, results.

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007, 2008

        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