Kbase P164904: Clicking on column of Microsoft DataGrid to sort grid by that column causes application to hang and
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  03/05/2010 |
|
Status: Unverified
SYMPTOM(s):
Clicking on column of Microsoft DataGrid to sort grid by that column
In the DataGrid's SortRequest event handler the bindingSource's query is rebuilt then the :Handle attribute of the BindingSource is reassigned to the same query that it was previously assigned to
FACT(s) (Environment):
OpenEdge 10.2x
Windows
CAUSE:
The BindingSource was incorrectly being given what it viewed as an entirely new source from which to retrieve data and because this was done in the middle of the event handling for the DataGrid the application became stuck in a loop (it is not logical to replace the BindingSource's :Handle attribute while it is being used to update the DataGrid).
FIX:
Remove the code that reassigns the query handle to the BindingSource's :Handle attribute. It is redundant.