473,413 Members | 1,713 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,413 software developers and data experts.

composite table made of column objects

max
Dear Group,

I'm just learning Windows Forms and C# (just in time for it to be
replaced by MS What's Next) and have a question concerning displaying
columnar data in a single datagridview.

My data is stored as a collection of column objects , each of which
contains an array of values as well as datatype info. I want to
assemble an ordered group of these columns into a data table and use a
datagridview to manipulate it. Basically, this is the same thing as
a list of records but my data is stored in column-order rather than
row order. I would like to dynamically be able to add and delete
columns from the group.

How can I collect these columns into a virtual table of records and
have the data binding mechanism provide the connection between the
grid & the virtual table? Utilmately, I'd like this table definition
to be dynamic. Also, copying is not an option -- I've got way too
much data.

Thanks for your guidance.

Max
Jun 24 '07 #1
1 1352
In this case, you will want to use the virtual mode of the DataGridView.
You can do this by setting the VirtualMode property of the instance to true.
You will then have to respond to the events that the DataGridView fires to
populate the view. For more information on how to do that, check out the
section of the MSDN documentation titled "Walkthrough: Implementing Virtual
Mode in the Windows Forms DataGridView Control", located at:

http://msdn2.microsoft.com/en-us/library/15a31akc.aspx
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"max" <myaffe_at_gamry_dot_comwrote in message
news:09********************************@4ax.com...
Dear Group,

I'm just learning Windows Forms and C# (just in time for it to be
replaced by MS What's Next) and have a question concerning displaying
columnar data in a single datagridview.

My data is stored as a collection of column objects , each of which
contains an array of values as well as datatype info. I want to
assemble an ordered group of these columns into a data table and use a
datagridview to manipulate it. Basically, this is the same thing as
a list of records but my data is stored in column-order rather than
row order. I would like to dynamically be able to add and delete
columns from the group.

How can I collect these columns into a virtual table of records and
have the data binding mechanism provide the connection between the
grid & the virtual table? Utilmately, I'd like this table definition
to be dynamic. Also, copying is not an option -- I've got way too
much data.

Thanks for your guidance.

Max
Jun 24 '07 #2

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

Similar topics

3
by: Andy | last post by:
Hi All! I would like to have a composite PK on 3 columns, one of them is null CREATE TABLE TableA ( ColA int NOT NULL , ColB int NOT NULL , ColC char (3) NULL , ......
10
by: deko | last post by:
I understand it's possible to make a composite Primary Key by holding down the control key and selecting multiple fields, then right-clicking and selecting Primary Key. But I've heard that's not a...
2
by: Peter Lindquist | last post by:
I had a fun issue this morning, and now I'm wondering if I violated a rule I didn't know about. Any insight would be much appreciated. All operations involving this particular table may be assumed...
6
by: mac | last post by:
Summary: 1. I want to define a column in anMS Access table to be lookups on other tables. 2. The table that is the data source (e.g the "parent" table) has a composite primary key. 3. When...
7
by: Ronald S. Cook | last post by:
My client manager likes concatenated/composite primary keys. I don't. Can anyone forward any arguments pro or con? Thanks, Ron
0
by: Jacques Vandensavel | last post by:
I have a legacy table which is composed out three key fields. It is representing a bank. I'm using NHibernate in my ASP.NET application to glue everything together. I'm already searching for an...
3
by: Eric | last post by:
I have created a fairly basic composite control consisting of a Label and a TextBox. In the overridden Render function, I'm creating a table with two rows and each row contains a cell (td). The...
2
by: lfhenry | last post by:
Hi All, I am about to make some changes to a process we have. The new process will have a new table who's job it is to store temporarily data such as customer, clerkno,productno, storeno , amount,...
54
by: csolomon | last post by:
Hello: I was wondering if I could get some input on how to address a design issue, involving my composite table. I have one portion of my project complete. The following forms and reports I...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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:
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...
0
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...
0
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...
0
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...

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.