Group: Forum Members
Posts: 1,
Visits: 9
|
Hi..
i am using a Datagrid control in my application.
i am binging a datatable to grid on page load.
and on a click event of a button i am binding another datatable to grid.which i deserialize from stream.but datagird shows me the DataCoulumns and Datarows only but not the values.
i tried grid.refresh(), grid.refreshdatasource() but problem still exists.
when i bound the same datatable i deserialized from stream with no datasource bound to grid then am values are displayed on grid.
please help.
The code is as follows.
dtOffers = b.Deserialize(fileStream) as DataTable;
dtOffers.RemotingFormat = SerializationFormat.Binary;
if (dtOffers != null)
{
gridOffer.BeginUpdate();
gridOffer.DataSource = null;
gridOffer.DataSource = dtOffers;
gridOffer.RefreshDataSource();
gridOffer.EndUpdate();
}
|