473,396 Members | 2,109 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

DataGridTableStyle concepts

I am trying to understand the mapping I need for the table
and the columns.

Suppose I have a dataTable called as follows

DataTable qcLoaderTable = new DataTable("QCLOADER");
string [] ColNames = new string[8]
{"DRIVE","CUST","MODEL","DOCUMENT","DISK","DAT
REC'D","LOAD","IMAGE"};

When I try to make a new DataGridTableStyle do I first map
the table and the each column I want to override ?

eg. [ each column mapping name to match the original
column name ? ]

Dim styles as New DataGridTableStyle
styls.MappingName = "QCLOADER"
dim colDrive as new DataGridTextBoxColumn
colDrive.MappingName="DRIVE"
dim colCust as new DataGridTextBoxColumn
colDrive.MappingName="CUST"
.... etc

Thanks...
Nov 20 '05 #1
1 1185
Hi,

Yes you have the concept right. Dont forget you can specify the
column width and header text for the DataGridTextBoxColumn. Of course you
have to add the tablestyle to the grid.

Ken
----------------
"andrewcw" <an*******@discussions.microsoft.com> wrote in message
news:06****************************@phx.gbl...
I am trying to understand the mapping I need for the table
and the columns.

Suppose I have a dataTable called as follows

DataTable qcLoaderTable = new DataTable("QCLOADER");
string [] ColNames = new string[8]
{"DRIVE","CUST","MODEL","DOCUMENT","DISK","DAT
REC'D","LOAD","IMAGE"};

When I try to make a new DataGridTableStyle do I first map
the table and the each column I want to override ?

eg. [ each column mapping name to match the original
column name ? ]

Dim styles as New DataGridTableStyle
styls.MappingName = "QCLOADER"
dim colDrive as new DataGridTextBoxColumn
colDrive.MappingName="DRIVE"
dim colCust as new DataGridTextBoxColumn
colDrive.MappingName="CUST"
... etc

Thanks...

Nov 20 '05 #2

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

Similar topics

0
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...
2
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...
2
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...
2
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...
2
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...
2
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...
4
by: Brett Romero | last post by:
I have the following DataGridTableStyle: DataGridTableStyle gridTableStyle = new DataGridTableStyle(); gridTableStyle.MappingName = "myStyle"; DataGridTextBoxColumn dgsc = new...
3
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...
7
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...

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.