If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Pervasive.SQL > From database to a datagrid

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-31-07, 05:26
1qaz2wsx7 1qaz2wsx7 is offline
Registered User
 
Join Date: Jul 2007
Posts: 13
From database to a datagrid

Hi

I want to move the data in a cartein
table to a DataGrid.

What im doing right now is using the:
dataGridView1.DataSource = dataset.Tables[0];

And its adding rows and columns automaticly according to the data base.
(including the headers)

I dont want to do it like that,
i want to design manualy the DataGrid at the beginning.
and then just put the data inside my designed
datagrid, without changing anything or add anything, and without the Headers.
(i want to make my own headers)

How can i do that ?

[im using visual c# with Pervasive.SQL 8]

Thanks.
Reply With Quote
  #2 (permalink)  
Old 07-31-07, 07:21
mirtheil mirtheil is offline
Registered User
 
Join Date: Dec 2001
Posts: 1,026
First question, why would you want to do this?
As far as the actual problem, you would need to manually create and populate the Columns collection of the DataGridView to set your own headers.
__________________
Mirtheil Software
Certified Pervasive Developer
Certified Pervasive Technician
Custom Btrieve/VB development
http://www.mirtheil.com
I do not answer questions by email. Please post on the forum.
Reply With Quote
  #3 (permalink)  
Old 08-01-07, 03:33
1qaz2wsx7 1qaz2wsx7 is offline
Registered User
 
Join Date: Jul 2007
Posts: 13
Hi

Hi

I want to do this because i can design my own
datagrid, its look better, and i want to use my own
headers, i dont want to use the names of the database fields.

With the visual design of the DataGrid i can do many things
very easily without using code, like limiting a cartein column,
change the colors, the size of each column, etc.


Why ? what is the problem with doing it like that ?


Thanks.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On