Removing the datagrid header.....

Discussion in 'ASP .Net Datagrid Control' started by Ram, Apr 12, 2004.

  1. Ram

    Ram Guest

    How to remove the datagrid header display ? Which property I should change ?
    Thanks
     
    Ram, Apr 12, 2004
    #1
    1. Advertisements

  2. Hi Ram,

    In the .aspx file:

    ShowHeader="False"

    as in

    <asp:DataGrid id="DataGrid1" runat="server" AutoGenerateColumns="False"
    ShowHeader="False">

    or in code like this:

    DataGrid1.ShowHeader = False

    http://msdn.microsoft.com/library/d...uiwebcontrolsdatagridclassshowheadertopic.asp

    Ken
    Microsoft MVP [ASP.NET]

    "Ram" <> wrote in message
    news:...
    > How to remove the datagrid header display ? Which property I should change
    > ?
    > Thanks
    >
    >
    >
    >
     
    Ken Cox [Microsoft MVP], Apr 12, 2004
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Karl Seguin

    firewalls "removing bogus header"

    Karl Seguin, Feb 10, 2004, in forum: ASP .Net
    Replies:
    4
    Views:
    1,628
    George Ter-Saakov
    Feb 10, 2004
  2. Newsgroup - Ann
    Replies:
    4
    Views:
    932
    lilburne
    Nov 2, 2003
  3. Chris  Chiasson
    Replies:
    6
    Views:
    844
    Richard Tobin
    Nov 14, 2006
  4. Rajarshi
    Replies:
    9
    Views:
    423
    Fredrik Lundh
    Dec 24, 2006
  5. mlt
    Replies:
    2
    Views:
    1,153
    Jean-Marc Bourguet
    Jan 31, 2009
  6. AlainCD
    Replies:
    0
    Views:
    372
    AlainCD
    Jan 12, 2006
  7. Henrik
    Replies:
    1
    Views:
    670
    Ken Cox [Microsoft MVP]
    Jul 6, 2006
  8. datagrid having row header and column header

    , Jul 13, 2006, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    301
Loading...