Home > Back-end >  On the issue of the cxgrid refresh, please the great god answer!
On the issue of the cxgrid refresh, please the great god answer!

Time:10-17

On the issue of the cxgrid refresh, please the great god answer!
Cxgrid connects the datasource, my value is receiving external data in the table, the changing, now there are two problems:
1. My cxgrid selected records, will automatically jump to the first row,
2. The pages in the data updated, will be stuck, after the update is normal,
Consult everybody how to solve?
Thank you very much,

CodePudding user response:

Change your data set (Query) will cause cxgrid refresh, this is inevitable.

1. My cxgrid selected records, will automatically jump to the first row,
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
1 the record in an event, such as the query beforeRefresh cxgrid the current view and the line number (or record), if you need to record data and the top line of the table shows information.
2 query data changes, cxgrid refresh, after the completion of the use of step 1 to obtain information to locate the line and the top line


2. The pages in the data updated, will be stuck, after the update is normal,
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Update cxgrid did lock, this time should be soon.

CodePudding user response:

reference 1st floor simonhehe response:
your data set (Query) change, will cause cxgrid refresh, this is inevitable.

1. My cxgrid selected records, will automatically jump to the first row,
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
1 the record in an event, such as the query beforeRefresh cxgrid the current view and the line number (or record), if you need to record data and the top line of the table shows information.
2 query data changes, cxgrid refresh, after the completion of the use of step 1 to obtain information to locate the line and the top line


2. The pages in the data updated, will be stuck, after the update is normal,
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Update cxgrid did lock, this time should be soon.

Method of cxgrid not closing the refresh?

CodePudding user response:

Cxgrid1. BeginUpdate;//update lock
Cxgrid1. EndUpdate;//unlock

Cxgrid find where you can do to set

CodePudding user response:

reference simonhehe reply: 3/f
cxgrid1. BeginUpdate;//update lock
Cxgrid1. EndUpdate;//unlock

Cxgrid find where you can do to set
ok, I try, thank you very much
  • Related