DataGridTableStyle concepts

  • Thread starter Thread starter andrewcw
  • Start date Start date
A

andrewcw

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...
 
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
 
Back
Top