Get error Type 'DataGridTableStyle' is not defined

I need to know what Namespace to import in order to use this control.
robjayAsked:
Who is Participating?
 
Vivek ThangaswamyConnect With a Mentor Commented:
HI

The following is the right way to include the namespaces in ASPX pages.

<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.SqlClient" %>
<%@ Page Debug=True %>

----
Your
<%@ Import Namespace="System.Windows.Forms" %>
declaration contains correct structure, but namespace you used is Winforms Namespace, it cannot be used in ASP.NET
0
 
robjayAuthor Commented:
0
 
robjayAuthor Commented:
I have all of that, is there not anyway that I can use the DataGridTableStyle control then for an aspx page?
I need to set column widths dynamically.
0
 
Vivek ThangaswamyCommented:
Hi

Check out the below link, it is a example for Custom grid devlopment in ASP.NET, like you can create a custom Grid for your needs(like DataGridTableStyle property) etc,...
http://www.codeproject.com/aspnet/SPDataGrid.asp

Its good way to do that.
0
All Courses

From novice to tech pro — start learning today.