TableStyle not memmber of DataGrid

Discussion in 'ASP .Net' started by tshad, Aug 28, 2007.

  1. tshad

    tshad Guest

    I was trying to look at TableStyles of a datagrid such as this code I found
    on the net:

    DataGridTableStyle existingTableStyle = grid.TableStyles[mapName];
    int counter = existingTableStyle.GridColumnStyles.Count;
    DataGridTableStyle newTableStyle = new DataGridTableStyle();

    But I get the error:

    'TableStyles' is not a member of 'System.Web.UI.WebControls.DataGrid'

    Why is that?

    Thanks,

    Tom
    tshad, Aug 28, 2007
    #1
    1. Advertising

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. Dave
    Replies:
    0
    Views:
    433
  2. BK Kim

    datagrid in datagrid

    BK Kim, Feb 23, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    530
    Alvin Bruney [MVP]
    Mar 2, 2004
  3. =?Utf-8?B?ZGFuYw==?=

    DataGrid ItemCommand event not firing if not first page

    =?Utf-8?B?ZGFuYw==?=, Oct 26, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    4,141
    =?Utf-8?B?ZGFuYw==?=
    Oct 26, 2005
  4. Andreas Klemt
    Replies:
    0
    Views:
    267
    Andreas Klemt
    Oct 8, 2003
  5. biru
    Replies:
    2
    Views:
    218
Loading...

Share This Page