BeginFill-blocks thread when BindingSource linked to control
Posted: Thu 21 Jan 2010 13:41
Hi
I met problem :
BeginFill - blocks thread when BindingSource linked to some control.
Example:
this.gridControl1.DataSource = this.V_ALLC_LIENTBindingSource;//line1
this.dataSet1.V_ALL_CLIENT.BeginFill(null, null);
This code blocks the thread.
When i comment line1 - it works fine.
Is it expected behaviour and if it is how i should work this around.
Tnank.
---
More exactly:
That code doesn't block the thread.
As i know when some control linked to a dataSource through BindingSource, it "automaticaly dislinks" ( i'm not shure how exactly explain this) from dataSource when on dataSource invoked some operation that load or change bunch of data (like Fill() operation on DataTable). But in this case it rests linked and when Fill() operation is invoked, gridControl try to treate all events about data changing what consume amount of time and resources. Sorry for this complication, i have wrote how could.
I met problem :
BeginFill - blocks thread when BindingSource linked to some control.
Example:
this.gridControl1.DataSource = this.V_ALLC_LIENTBindingSource;//line1
this.dataSet1.V_ALL_CLIENT.BeginFill(null, null);
This code blocks the thread.
When i comment line1 - it works fine.
Is it expected behaviour and if it is how i should work this around.
Tnank.
---
More exactly:
That code doesn't block the thread.
As i know when some control linked to a dataSource through BindingSource, it "automaticaly dislinks" ( i'm not shure how exactly explain this) from dataSource when on dataSource invoked some operation that load or change bunch of data (like Fill() operation on DataTable). But in this case it rests linked and when Fill() operation is invoked, gridControl try to treate all events about data changing what consume amount of time and resources. Sorry for this complication, i have wrote how could.