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

Bind 2D Array to DataGridView

Hello,

I have experimental data stored in a List<> of double arrays, List<double[]> Values; Each element of the List<> represents a different series of values and the double[] is the set of the actual values.

Typically I have several dozen different series, each with about 100,000 points. Based on where a user selects in a chart, I will automatically scroll to the selected point, also allowing the points around it to be seen.

Anyway, with this much data (250+ MB in memory), it isn't practical to copy all these items into the datagrid at once, instead I would like it to be populated on-demand with the necessary values, preventing a complete duplication of memory.

I've tried creating a binding context with Values, but the data table displays the properties of each element of the List instead of the actual values. I've looked into creating a custom DataTable, but all the implementations I've seen seem to require copying the values into it before displaying it.

Any suggestions on how to efficiently populate this datagrid on demand?

Thanks
Jul 23 '08 #1
1 4776
nmsreddi
366 256MB
Hello

As you can assign data table as data source to data grid better maintain different data tables as per your requirement ,depending on condition try to re- bind the grid with particular data table, it can solve your problem
Jul 23 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: swartzbill2000 | last post by:
I have a global instance of a MyDataSet and a global instance of a MDI child form containing a DataGridView. In the designer, it looks like an instance of the DataSet got added to the form and the...
1
by: Diego | last post by:
I need to display a list of ojects (containing few fields like name, surname, adress) in a Grid, is it possible to directly bind the list of objects with the DataGridView? Thanks, Diego
0
by: freddycoal | last post by:
Hi, I would like know, how transform a datagridview row to an array. Exist commands for make this?. I have CVS file, I read line to line, but I would like asign this array (one line in my...
0
by: Mark Jerde | last post by:
VS 2005 SP1. Googled without success. I have an array of structs, and some of the elements are arrays of structs. E.g., ------------------------------------- public struct foobar { public int...
7
by: Mike | last post by:
i have a small difficulties with BindingSource and dataGridView bind db has properly opened and bind doesn't works. Unfortunately I didn't find any good example how to connect MS Access with...
2
by: Vlad | last post by:
I have been trying to bind a datagridview to a dataset at design time but it doesn't seem to be working. I'm using vs2005 with all the latest patches applied. I have actually managed it using...
3
by: weird0 | last post by:
Purpose: The objective is to update or add a new row in datagridview using an arraylist I have an arraylist inside of a class and i added an object to the arraylist on the button click event....
4
by: Pieter | last post by:
Hi, I want to bind a proeprty of a child object to a DataGridView, but it doesn't work. For instance: Imagen that I have an object Company, and this object company has a child object...
2
by: Ronald S. Cook | last post by:
Does anyone know why an IEnumerable might not bind to a DataGridView? Thanks, Ron
0
by: bharathi228 | last post by:
hi, how to assign a array as datasource to datagridview in vb.net. my code is Dim intarray(mblndigital_inputs) As Integer mblndigital_inputs.Copyto(intarray, 0) Array.Reverse(intarray)
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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
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
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...
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.