473,586 Members | 2,678 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DataGridTableSt yle Problem

Does DataGridTableSt yle work in ASP.net ? any time I'm tring to define a
varibale lke

DataGridTableSt yle MyStyle = new DataGridTableSt yle();

it give me "The Type or name sapce 'DataGridTableS tyle 'could not be found"

also I have the following at the begining of the program..

using System;
using System.Collecti ons;
using System.Componen tModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.Sess ionState;
using System.Web.UI;
using System.Web.UI.W ebControls;
using System.Web.UI.H tmlControls;
using System.Data.Sql Client;

Note : this is running in a asp.net webserver

Thanks


Nov 18 '05 #1
2 1738
Carlos wrote:
Does DataGridTableSt yle work in ASP.net ? any time I'm tring to define a
varibale lke

DataGridTableSt yle MyStyle = new DataGridTableSt yle();

it give me "The Type or name sapce 'DataGridTableS tyle 'could not be found"

also I have the following at the begining of the program..

using System;
using System.Collecti ons;
using System.Componen tModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.Sess ionState;
using System.Web.UI;
using System.Web.UI.W ebControls;
using System.Web.UI.H tmlControls;
using System.Data.Sql Client;

Note : this is running in a asp.net webserver

Thanks



No, that's a Windows Form concept. Might I suggest a good basic reading at

http://aspnet.4guysfromrolla.com/articles/040502-1.aspx

it's a 15 part article on everything you need to know about the webforms
DataGrid. Part 2 covers some formatting...

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET
Nov 18 '05 #2
Thanks !!
"Craig Deelsnyder" <cdeelsny@NO_SP AM_4_MEyahoo.co m> wrote in message
news:OG******** ******@TK2MSFTN GP11.phx.gbl...
Carlos wrote:
Does DataGridTableSt yle work in ASP.net ? any time I'm tring to define a varibale lke

DataGridTableSt yle MyStyle = new DataGridTableSt yle();

it give me "The Type or name sapce 'DataGridTableS tyle 'could not be found"
also I have the following at the begining of the program..

using System;
using System.Collecti ons;
using System.Componen tModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.Sess ionState;
using System.Web.UI;
using System.Web.UI.W ebControls;
using System.Web.UI.H tmlControls;
using System.Data.Sql Client;

Note : this is running in a asp.net webserver

Thanks


No, that's a Windows Form concept. Might I suggest a good basic reading

at
http://aspnet.4guysfromrolla.com/articles/040502-1.aspx

it's a 15 part article on everything you need to know about the webforms
DataGrid. Part 2 covers some formatting...

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2244
by: Floela | last post by:
I want to set a the MappingName of a DataGridTableStyle to "ArrayList" in an ASP.NET page, but the class is stored in the System.Windows.Forms namespace. It won't let me import the namespace at the top of my page (The type or namespace name 'Windows' does not exist in the class or namespace 'System'). How do I create a DataGridTableStyle...
2
3443
by: Carlos | last post by:
Does DataGridTableStyle work in ASP.net ? any time I'm tring to define a varibale lke DataGridTableStyle MyStyle = new DataGridTableStyle(); it give me "The Type or name sapce 'DataGridTableStyle 'could not be found" also I have the following at the begining of the program.. using System;
2
1400
by: Chuck Bowling | last post by:
I have a Typed Dataset called InstrumentSet containing two tables. An Instrument table and a joined Parameters table. The DataGrid that is attached to the Parameters table shows more information than I need so I tried to define a DataGridTableStyle to limit the displayed info but for some reason I can't get it to work. I'm not sure what I'm...
2
3111
by: Scott | last post by:
Hi all. A few days ago i ask this question and got a good quick response. I tried out what they said and it worked. However I have now come to try the same thing in another program and it does not seem to be working.
2
2095
by: kerpal | last post by:
Hi all, 1. Could anyone pls clarify the difference between setting the AlternatingBackColor property in DataGridTableStyle and in DataGrid?? 2. How come BackColor and AlternatingBackColor are both associated with the ODD-numbered rows of the grid as stated in msdn?? Thank you and happy new year!!
2
2411
by: Brett Romero | last post by:
I can't find what exactly I'm doing wrong that the following DataGridTableStyle is not working on my table. The result set returns 21 columns. I'm only formatting 5 via the TableStyle. I thought maybe the problem was I had more columns being put into the DataGrid than I was formatting. I then created a new table and adding only the five...
4
5837
by: Brett Romero | last post by:
I have the following DataGridTableStyle: DataGridTableStyle gridTableStyle = new DataGridTableStyle(); gridTableStyle.MappingName = "myStyle"; DataGridTextBoxColumn dgsc = new DataGridTextBoxColumn(); dgsc.MappingName = "FirstName"; dgsc.HeaderText = "First Name"; dgsc.Width = 30; dgsc.TextBox.Enabled = false;...
3
4271
by: nita | last post by:
I'm just starting out, and it's incredibly frustrating when I see sample code and then try to implement it. Case in point. I'm populating a collection then binding it to a datagrid. That works great. The problem is the columns are in the wrong order. OK. I'll use the datagridtablestyle. But when I add the following statement; Dim...
7
12584
by: Mitchell S. Honnert | last post by:
Is there an equivalent of the DataGrid's DataGridTableStyle for the DataGridView? If not, is there an easy way to duplicate the DataGridTableStyle's functionality for the DataGridView? Here's the background for my question... Before I switched my application over to the Fx 2.0, I used a DataGrid to display my data. I would store...
0
7839
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8338
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7959
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8216
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5710
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5390
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3865
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2345
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1449
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.