This example illustrates how to load data in an unbound column asynchronously.
Question Comments
Added By: Maxime MERIAUX at: 7/23/2014 3:00:33 AM
Hello,
this sample is great, but it doesn't work if the grid displays details information of a master binding source as the e.ListSourceRowIndex can be the same when master row changes...
considering I have a Fk bindingsource for that grid, I tried to access the master BindingSource and get the current index... but I have threads problems as the bindingsource is used by another thread.
Can you advise on this?
Best regards.
Added By: Maxime MERIAUX at: 7/23/2014 6:12:06 AMWell I used the Datarow index instead, works well...
I do not know if this is a consequence, but I have now the following error:
BindingSource cannot be its own data source. Do not set the DataSource and DataMember properties to values that refer back to BindingSource.
at System.Windows.Forms.BindingSource.get_Count()
at DevExpress.Data.Helpers.BaseDataControllerHelper.get_Count()
at DevExpress.Data.DataControllerBase.get_ListSourceRowCount()
at DevExpress.Data.DataController.get_VisibleListSourceRowCount()
at DevExpress.Data.DataController.IsControllerRowValid(Int32 controllerRow)
at DevExpress.Data.CurrencyDataController.IsControllerRowValid(Int32 controllerRow)
at DevExpress.Data.DataController.GetRowValue(Int32 controllerRow, Int32 column, OperationCompleted completed)
at DevExpress.Data.BaseListSourceDataController.GetRowValue(Int32 controllerRow, Int32 column, OperationCompleted completed)
at DevExpress.XtraGrid.Views.Grid.GridView.GetRowCellValue(Int32 rowHandle, GridColumn column, OperationCompleted completed)
at DevExpress.XtraGrid.Views.Grid.GridView.GetRowCellValue(Int32 rowHandle, GridColumn column)
at DevExpress.XtraGrid.Views.Grid.ViewInfo.GridViewInfo.CalcRowCellDrawInfo(GridDataRowInfo ri, GridColumnInfoArgs ci, GridCellInfo cell, GridColumnInfoArgs nextColumn, Boolean calcEditInfo)
at DevExpress.XtraGrid.Views.Grid.ViewInfo.GridViewInfo.CalcRowCellsDrawInfo(GridDataRowInfo ri, GridColumnsInfo columnsInfo)
at DevExpress.XtraGrid.Views.Grid.ViewInfo.GridViewInfo.CalcDataRow(GridDataRowInfo ri, GridRow row, GridRow nextRow)
at DevExpress.XtraGrid.Views.Grid.ViewInfo.GridViewInfo.CalcRowsDrawInfo()
at DevExpress.XtraGrid.Views.Grid.ViewInfo.GridViewInfo.CalcGridInfo()
at DevExpress.XtraGrid.Views.Grid.ViewInfo.GridViewInfo.Calc(Graphics g, Rectangle bounds)
at DevExpress.XtraGrid.Views.Base.ColumnView.DoInternalLayout()
at DevExpress.XtraGrid.Views.Base.ColumnView.CalculateLayout()
at DevExpress.XtraGrid.Views.Grid.GridView.LayoutChanged()
at DevExpress.XtraGrid.Views.Base.BaseView.EndUpdateCore(Boolean synchronized)
at DevExpress.XtraGrid.GridControl.EndUpdate(Boolean synchronized)