Solved

Get error Type 'DataGridTableStyle' is not defined

Posted on 2006-10-21
4
417 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
  • 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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

803 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