Page 1 of 1
CxGrid and FetchRows problem
Posted: Wed 25 Jul 2012 04:02
by rrcanalista
Hi, is there any problem with FetchRows property and cxGrid?
When I link to a cxGrid, the count of records returned are not the same of FetchRows property. I'm using TUniQuery.
If I use standard DbGrid the property FetchRows works fine!
In this table, there is about 4000 records, I'd like to retrieve only 25/30 records!
Thanks
Re: CxGrid and FetchRows problem
Posted: Wed 25 Jul 2012 11:46
by AlexP
Hello,
By default, TCxGrid reads out all records from the table independently on our FetchAll option, to change this behaviour, you should set the GridMode property to True
cxGrid1DBTableView1.DataController.DataModeController.GridMode := True;
Re: CxGrid and FetchRows problem
Posted: Wed 25 Jul 2012 12:03
by rrcanalista
Hi, thanks, it worked partially, When a Set Fetch to 10, the record count is 70. Example
FetchRows Records Count
10 70
20 80
but this tip was helpful, thanks
Re: CxGrid and FetchRows problem
Posted: Wed 25 Jul 2012 13:20
by AlexP
hello,
Try setting the GridModeBufferCount property to the value that you have set for our FetchRows property
cxGrid1DBTableView1.DataController.DataModeController.GridModeBufferCount := UniQuery.FetchRows;
Re: CxGrid and FetchRows problem (resolved)
Posted: Wed 25 Jul 2012 17:46
by rrcanalista
Thanks a lot. Reply very fast and efficient.
Re: CxGrid and FetchRows problem
Posted: Thu 26 Jul 2012 08:11
by AlexP
hello,
If you have any other questions, feel free to contact us.