0
Reply

problem in readonly grid

adam abdul

adam abdul

Sep 25 2010 2:03 AM
9.8k

Hi,
This is Adam,I have a grid of devexpress in which i want to bind datatable.It shows an error (grid is readonly)I tried two apporch,My code are
 
1)
DataTable dt = a.ToTable();
BindingSource bsource = new BindingSource();
bsource.DataSource = dt;

2)
DataTable dt = a.ToTable();
gridview.DataSource = dt;

I get the following error:
Property or indexer 'DevExpress.XtraGrid.Views.Base.BaseView.DataSource' cannot be assigned to -- it is read only 

Thank you,
Adam