How to refresh grid?
Moderator: Rathinagiri
How to refresh grid?
I want to present some data collected in array with grid.
I want to change some values programmatically.
How to refresh grid to display changes?
Is the only one way to delete all items and add all table rows again?
I want to change some values programmatically.
How to refresh grid to display changes?
Is the only one way to delete all items and add all table rows again?
- srvet_claudio
- Posts: 2224
- Joined: Thu Feb 25, 2010 8:43 pm
- Location: Uruguay
- Contact:
Re: How to refresh grid?
Hi Mol,
changed the grid with?
<ParentWindowName>.<ControlName>.Cell(nRow,nCol) := CellContent
Do not change directly in the array.
best regards,
Claudio Soto.
changed the grid with?
<ParentWindowName>.<ControlName>.Cell(nRow,nCol) := CellContent
Do not change directly in the array.
best regards,
Claudio Soto.
Re: How to refresh grid?
I am dealing with a similar issue. I am using a grid to display a dbf. I want the user to be able to change the order of the database data (SET ORDER TO TAG...) but when I do this I can't figure out how to get the grid to refresh properly. I have also tried releasing the grid control and then recreating it once the new order is set, but the grid doesn't seem to populate properly. For example, it starts displaying in the middle of the data. It seems the only way to get the data refreshed properly is to click on the data then click a ctrl-end and ctrl-home. Can someone polease give me some guidance on the proper way to do this?
Thanks,
Ralph
Thanks,
Ralph
When your toolbox only contains a hammer, everything looks like a nail...
- Roberto Lopez
- HMG Founder
- Posts: 4023
- Joined: Wed Jul 30, 2008 6:43 pm
Re: How to refresh grid?
This is.srvet_claudio wrote:Hi Mol,
changed the grid with?
<ParentWindowName>.<ControlName>.Cell(nRow,nCol) := CellContent
Do not change directly in the array.
best regards,
Claudio Soto.
Regards/Saludos,
Roberto
(Veritas Filia Temporis)
Roberto
(Veritas Filia Temporis)
- Roberto Lopez
- HMG Founder
- Posts: 4023
- Joined: Wed Jul 30, 2008 6:43 pm
Re: How to refresh grid?
The thing I've described is different that the Mol one.RalphMDS wrote:I am dealing with a similar issue. I am using a grid to display a dbf. I want the user to be able to change the order of the database data (SET ORDER TO TAG...) but when I do this I can't figure out how to get the grid to refresh properly. I have also tried releasing the grid control and then recreating it once the new order is set, but the grid doesn't seem to populate properly. For example, it starts displaying in the middle of the data. It seems the only way to get the data refreshed properly is to click on the data then click a ctrl-end and ctrl-home. Can someone polease give me some guidance on the proper way to do this?
Thanks,
Ralph
Please, post a complete sample to check if this is a bug.
Regards/Saludos,
Roberto
(Veritas Filia Temporis)
Roberto
(Veritas Filia Temporis)
Re: How to refresh grid?
Thanks for help!
I've tried to change my browse control into grid control and I found, that isn't possible to use complex expression as ControlField.
Browse is more flexible - it's possible to use fields from different areas connected via relations, or even use function or expressions as fields...
So, I wanna ask, do you expect such a possibilities, Roberto?
I've tried to change my browse control into grid control and I found, that isn't possible to use complex expression as ControlField.
Browse is more flexible - it's possible to use fields from different areas connected via relations, or even use function or expressions as fields...
So, I wanna ask, do you expect such a possibilities, Roberto?
Re: How to refresh grid?
When I want to refresh a grid using tables (.dbf), I use refresh method of grid. Eg.,
Here both "emp" and "salreg" are temorary tables, created with SQLMIX RDD.
With best regards.
Sudip
Code: Select all
select salreg
delete all
select emp
go top
do while !eof()
select salreg
append blank
replace ...
replace ...
select emp
skip
enddo
frmSalreg.grdSalreg.Refresh //------ grdSalreg grid uses salreg table With best regards.
Sudip
With best regards,
Sudip
Sudip
- Roberto Lopez
- HMG Founder
- Posts: 4023
- Joined: Wed Jul 30, 2008 6:43 pm
Re: How to refresh grid?
Yes, of course. Data-bound grid will continue evolving.mol wrote:Thanks for help!
I've tried to change my browse control into grid control and I found, that isn't possible to use complex expression as ControlField.
Browse is more flexible - it's possible to use fields from different areas connected via relations, or even use function or expressions as fields...
So, I wanna ask, do you expect such a possibilities, Roberto?
Regards/Saludos,
Roberto
(Veritas Filia Temporis)
Roberto
(Veritas Filia Temporis)
- Roberto Lopez
- HMG Founder
- Posts: 4023
- Joined: Wed Jul 30, 2008 6:43 pm
Re: How to refresh grid?
I've created a sample to test Grid with multiple orders and I've confirmed the problem.RalphMDS wrote:I am dealing with a similar issue. I am using a grid to display a dbf. I want the user to be able to change the order of the database data (SET ORDER TO TAG...) but when I do this I can't figure out how to get the grid to refresh properly. I have also tried releasing the grid control and then recreating it once the new order is set, but the grid doesn't seem to populate properly. For example, it starts displaying in the middle of the data. It seems the only way to get the data refreshed properly is to click on the data then click a ctrl-end and ctrl-home. Can someone polease give me some guidance on the proper way to do this?
Thanks,
Ralph
The problem is caused by an speed optimization.
I'm working to fix it.
Thanks for the report.
Regards/Saludos,
Roberto
(Veritas Filia Temporis)
Roberto
(Veritas Filia Temporis)
- Roberto Lopez
- HMG Founder
- Posts: 4023
- Joined: Wed Jul 30, 2008 6:43 pm
Re: How to refresh grid?
Roberto Lopez wrote: I've created a sample to test Grid with multiple orders and I've confirmed the problem.
The problem is caused by an speed optimization.
I'm working to fix it.
Thanks for the report.
I've fixed.
A patch including a sample is attached to this message.
Thanks again for the report.
- Attachments
-
- patch3.0.27b.rar
- (206.14 KiB) Downloaded 342 times
Regards/Saludos,
Roberto
(Veritas Filia Temporis)
Roberto
(Veritas Filia Temporis)