473,405 Members | 2,444 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,405 software developers and data experts.

DataGrid - iList - external data source problem

Hi. I am attempting to display the contents of a database table on a CE
device. I was using a DataTable object, as the datasource of the DataGrid,
to accomplish this task. The problem with this approach is that I need to
read the whole table into memory before assigning it as the datasource of
the DataGrid. Ideally, I should retrieve row by row as needed to save
memory.

Conceivably I could read a partial # of rows and refresh the DataTable
object with the new data during run-time, as needed. However, the problem
with this approach is that the DataGrid will think that the total table size
is only that many rows. For ex: if the database in total has 1000 rows and I
am only assigning 10 rows at a time to my DataGrid datasource (in the form
of a DataTable), the DataGrid's scroll bar will only reflect 10 rows.

I am presently trying to use the iList interface to solve this problem.
Unfortunately, I couldn't find any documentation on how I can simulate the
2D nature of the DataTable using the 1D iList interface.

If someone can help me with this or see a problem with my train of thought,
that would be great. Thanks!.

Chankama
Nov 15 '05 #1
0 1414

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

Similar topics

5
by: Steve M | last post by:
I have subclassed CollectionBase. I have also implemented GetEnumerator(). I have tried to set the DataSource of a DataGrid to an instance of my subclass. However, the items in the grid are not...
2
by: SammyBar | last post by:
Hi, I'm trying to bind a custom collection class to a data grid, following the guidelines from the article http://msdn.microsoft.com/msdnmag/issues/05/08/CollectionsandDataBinding/default.aspx....
5
by: K | last post by:
I created a collection which is derived from ArrayList and implements IBindingList and ITypedList. Then I bound the DataSource of a data grid into the collection. It could show up the data but...
5
by: Jim | last post by:
is it possible to add a row to a Windows datagrid witthout having a datatable? I need to add a row to the datagrid control. Thanks.
1
by: Skip | last post by:
Hi, This might be the easiest question ever but I can't seem to find how to do it: I have a DataGrid that's linked to an instance of IList (actually, it's an ArrayList). On load, there's...
3
by: Jet Leung | last post by:
Hi all, How can I get the rows count of the datagrid without count its datasource?
0
by: Bret Pehrson | last post by:
I'm using a custom data source for my (WinForms) datagrid: public class MyDataSource : IList { // ... } each row is a: public class MyDataRow
15
by: Rik Brooks | last post by:
I find it amazing that I am quickly able to find answers to obscure questions but simple ones elude me. I have a datagrid that I've bound, no problem at all. Now I want to - programatically -...
5
by: tshad | last post by:
Is there a way to carry data that I have already read from the datagrid from page to page? I am looking at my Datagrid that I page through and when the user says get the next page, I have to go...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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...

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.