AD
Administrator
Syncfusion Team
March 24, 2005 04:54 PM UTC
Yogi, just wanted to check that you got the sample we sent in Direct Trac incident 16800, correct?
As far as painting only some of the cells in a row instead of the whole row, if you have access to the code that changes the grid (or changes the datasource), here is something you could try.
Before the change, call
this.gridDataBoundGrid1.BeginUpdate(Syncfusion.Windows.Forms.BeginUpdateOptions.None);
The after the change, call
this.gridDataBoundGrid1.EndUpdate(false);
Then you could call grid.InvalidateRange to invalidate the single cell that changed. I think this would avoid painting the whole row.
If you submit another Direct Trac incident, we can forward you a different sample (also requires new DLLS as the other sample did) that invaldiates things cell by cell though it does use a virtual GridControl bound to a datatable to do this, and not a GridDataBoundGrid.
AD
Administrator
Syncfusion Team
March 24, 2005 08:55 PM UTC
thx Clay.. pls check the incident report i have posted my observation with sample project that uses the real typed dataset
Regards
Yogi
>Yogi, just wanted to check that you got the sample we sent in Direct Trac incident 16800, correct?
>
>As far as painting only some of the cells in a row instead of the whole row, if you have access to the code that changes the grid (or changes the datasource), here is something you could try.
>
>Before the change, call
>
>this.gridDataBoundGrid1.BeginUpdate(Syncfusion.Windows.Forms.BeginUpdateOptions.None);
>
>The after the change, call
>
>this.gridDataBoundGrid1.EndUpdate(false);
>
>
>Then you could call grid.InvalidateRange to invalidate the single cell that changed. I think this would avoid painting the whole row.
>
>If you submit another Direct Trac incident, we can forward you a different sample (also requires new DLLS as the other sample did) that invaldiates things cell by cell though it does use a virtual GridControl bound to a datatable to do this, and not a GridDataBoundGrid.