Solved

Get error Type 'DataGridTableStyle' is not defined

Posted on 2006-10-21
4
428 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 250 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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
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.…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

636 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