Jump to content


Vu Quang Thang

Member Since 26 May 2006
Offline Last Active Apr 11 2023 07:08 AM
-----

Posts I've Made

In Topic: Problem with NextGrid v4.5

25 August 2008 - 01:04 PM

Thanks for your quick update. The last error has gone but think there are still some problems with the Demo1.
- Click on InsertColumn(3) menu just add one column.
- Click DeleteColumn(2) at first time, it runs correctly but it will delete the last column on second time.

Just a quick test.

Kind regards

In Topic: Problem with NextGrid v4.5

22 August 2008 - 06:01 AM

Hello Boki,

I use a freeware version so I don't have the source code and there is nothing in member section.

Kind regards

In Topic: Suggestion to improve speed

04 December 2007 - 12:08 PM

QUOTE (dee @ Dec 4 2007, 11:58 AM) <{POST_SNAPBACK}>
Btw, I use TempDataSet.Next method A LOT, because most of the time, I need to do something for every queried record which I can not do on the database server. For example, I need to format the date to the client computer's local format. They have their own preferences of showing the dates. Sometimes I need to place some conditions, so I need to scan every record. So I don't think using TDataLink or TNxDataCellSource is a good idea. Does this make any sense?


Hi,

I think if you need to do something for every record, so DataSet.Next method is a must. The standard DBGrid runs very fast. So I assume that DBNextGrid should be alike and it can format your data somehow. Can you give it a try.

Kind regards,

In Topic: Suggestion to improve speed

03 December 2007 - 01:56 PM

Hi,

I mean that you just open the dataset, make a loop from the beginning to the end with just one line of code: TempDataSet.Next for 8000 records. You will see it also consume the same amount of time.

For the NextGrid.AddRow method, I don't see that error.

Kind regards,

In Topic: Suggestion to improve speed

03 December 2007 - 12:02 PM

Hi,

I think the problem lying on the way it locate the record in the dataset. If you remove every line of code that related to NextGrid, the time spend almost is the same.

BTW: you can make this code
Grid.AddRow();
Grid.AddRow(TempDataSet.RecordCount - 1);

shorter by

Grid.AddRow(TempDataSet.RecordCount);

Kind regards,