Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > TableStyle not memmber of DataGrid

Reply
Thread Tools

TableStyle not memmber of DataGrid

 
 
tshad
Guest
Posts: n/a
 
      08-28-2007
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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DataGrid ItemCommand event not firing if not first page =?Utf-8?B?ZGFuYw==?= ASP .Net 3 10-26-2005 05:24 PM
DataGrid SortCommand Event not fired on dynamically generated datagrid biru ASP .Net Web Controls 2 05-06-2005 01:38 PM
datagrid in datagrid BK Kim ASP .Net 1 03-02-2004 06:34 AM
Call Datagrid Command column outside datagrid Dave ASP .Net 0 11-20-2003 11:11 AM
To all Gurus: How can I edit/update a DataGrid in a DataGrid (nested DataGrid)? Possible? Andreas Klemt ASP .Net Datagrid Control 0 10-08-2003 01:19 AM



Advertisments