Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Get error Type 'DataGridTableStyle' is not defined

Posted on 2006-10-21
4
Medium Priority
?
433 Views
Last Modified: 2008-02-01
I need to know what Namespace to import in order to use this control.
0
Comment
Question by:robjay
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 

Author Comment

by:robjay
ID: 17780784
0
 
LVL 11

Accepted Solution

by:
Vivek Thangaswamy earned 1000 total points
ID: 17780921
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
 

Author Comment

by:robjay
ID: 17781247
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
 
LVL 11

Expert Comment

by:Vivek Thangaswamy
ID: 17786666
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

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question