adam abdul

adam abdul

  • NA
  • 8
  • 0

problem in readonly grid

Sep 25 2010 2:03 AM

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