Q
Qubeczek
Hi,
My team is planning to make some software for Mobile Devices under Windows
for Mobile (bussines solutions, based on databases).
The example form should be like this:
- DataGridView component, with some records (eg. 10) - suppose, that table
on serwer has 10 000 records.
- when user scroll - down step-by-step, next records should be downloaded
(not erielr, but just in the moment, when data are needed to show to the
user)
- if user scroll - down next step, the queries for DataTable (or DataView)
are modified that way, that they returns only next couple records.
- if number of records in local buffer exceed some count, the first record
are removed from buffer of DataTable, and next records are downloaded.
The main problem is, that the number of records are NOT KNOWN at the start.
I get records form serwer until I get EOF sign (it dosen;t matter now, what
kind of database it is, suppose, that we get special DataAdapter for .txt
files
What is my problem:
- DataTable is a kind of buffer, that is filled by DataAdapter. I can
udestand that But what to do, when I'd like to constrain the count of
record in this buffer, bud recordset in database is larger than this buffer
?
- how to progam this to using in Datagrid ?
What I need, is to get some Event, that "something" - eg. DataViewGrid -
want to to get "next record after the last one in buffor". And then I could
"download" next part of real recordset.
And I cannot find that Event in any component
DataAdapter-DataBinding-DataTable-DataSet-DataGidView.
Standard DataAdapter.Fill(DataTable) load ALL RECORDS - (eg. 10000) into
DataTable. It's not for me.
I known, that other usually make it's in that way, that they make pagging
style forms, when on every page I have eg. 12 records, and when I click
"Next" new SQL query is generated. I'd like to avoid this.
I have done someting like this, but under VCL (Borland). It was quite
complicated, but posiible. Of course, full source code of VCL was very
helpfull to undestand Borland DataSet logic. Maybe there is a possibility to
get source code of ADO components, just for studying and make concept, how
to ovveride classical components to get my own ? I'd like to use standard
GUI components, but propably I will have to write descendants of ADO.NET
components.
If someone uderstood my message - please help
Regards
Qubeczek
My team is planning to make some software for Mobile Devices under Windows
for Mobile (bussines solutions, based on databases).
The example form should be like this:
- DataGridView component, with some records (eg. 10) - suppose, that table
on serwer has 10 000 records.
- when user scroll - down step-by-step, next records should be downloaded
(not erielr, but just in the moment, when data are needed to show to the
user)
- if user scroll - down next step, the queries for DataTable (or DataView)
are modified that way, that they returns only next couple records.
- if number of records in local buffer exceed some count, the first record
are removed from buffer of DataTable, and next records are downloaded.
The main problem is, that the number of records are NOT KNOWN at the start.
I get records form serwer until I get EOF sign (it dosen;t matter now, what
kind of database it is, suppose, that we get special DataAdapter for .txt
files
What is my problem:
- DataTable is a kind of buffer, that is filled by DataAdapter. I can
udestand that But what to do, when I'd like to constrain the count of
record in this buffer, bud recordset in database is larger than this buffer
?
- how to progam this to using in Datagrid ?
What I need, is to get some Event, that "something" - eg. DataViewGrid -
want to to get "next record after the last one in buffor". And then I could
"download" next part of real recordset.
And I cannot find that Event in any component
DataAdapter-DataBinding-DataTable-DataSet-DataGidView.
Standard DataAdapter.Fill(DataTable) load ALL RECORDS - (eg. 10000) into
DataTable. It's not for me.
I known, that other usually make it's in that way, that they make pagging
style forms, when on every page I have eg. 12 records, and when I click
"Next" new SQL query is generated. I'd like to avoid this.
I have done someting like this, but under VCL (Borland). It was quite
complicated, but posiible. Of course, full source code of VCL was very
helpfull to undestand Borland DataSet logic. Maybe there is a possibility to
get source code of ADO components, just for studying and make concept, how
to ovveride classical components to get my own ? I'd like to use standard
GUI components, but propably I will have to write descendants of ADO.NET
components.
If someone uderstood my message - please help
Regards
Qubeczek