gridview disppeared in IE explorer

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sukumaster
    New Member
    • Jul 2007
    • 19

    gridview disppeared in IE explorer

    hi

    i placed one gridview,one textbox i in a form When i run it text box is availbale but gridview is not available in the IE page. I dont know what s the reason behind this.I checked it visible,enable properties but all are set true.what should i do to get gridview at IE page.
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    Is there data in it?
    If there's no data in a gridview, I believe it's default behavior is to not draw itself.

    Comment

    • sukumaster
      New Member
      • Jul 2007
      • 19

      #3
      Originally posted by Plater
      Is there data in it?
      If there's no data in a gridview, I believe it's default behavior is to not draw itself.
      There is no data in the gridview.If i dragged sqldatasource and fill some data its availlbale in IE page

      can i display gridview for my owncolumns (not in table)?i mean i want to use gridview as< table > without filling a table or storedproc .is it possible?

      Comment

      • Frinavale
        Recognized Expert Expert
        • Oct 2006
        • 9749

        #4
        Originally posted by sukumaster
        There is no data in the gridview.If i dragged sqldatasource and fill some data its availlbale in IE page

        can i display gridview for my owncolumns (not in table)?i mean i want to use gridview as< table > without filling a table or storedproc .is it possible?
        The DataGrid will not be drawn if there is nothing in the data source.
        If you want to display an empty DataGrid you will have to supply it with a table that holds spaces (nbsp;) as your source.

        Comment

        • Plater
          Recognized Expert Expert
          • Apr 2007
          • 7872

          #5
          You can also use the EmptyDataTest attribute as well as the <EmptyDataRowSt yle> element

          Here's part of what I use:

          [code=asp]
          <asp:GridView ID="gvOverdueSi tes" EmptyDataText=" (None)" >
          <EmptyDataRowSt yle BackColor="Tran sparent" HorizontalAlign ="Center" />
          </asp:GridView>
          [/code]

          Comment

          Working...