Hi Madhan,
I am calling the method ResetVolatileData() also eventhough getting the same error.
But I have fixed the error by checking the following condition in PrepareViewStyleInfo event
if ( e.RowIndex > 0 && this.CurrentCell.HasCurrentCellAt(e.RowIndex))
{
// logic to get the record based on rowindex.
}
this returns false if the rowindex is out of range.
thanks for your help
Cheers
Ravi.
>Hi Ravi,
>
>Try setting the ResetVolatileData( ) before refreshing the grid and let us know if this helps.
>
>externalData.ExpandAll( );
>gridControl1.ResetVolatileData();
>gridControl1.Refresh( );
>gridControl1.UpdateScrollBars();
>this.gridControl1.Invalidate();
>
>Kindly modify the attached sample to reproduce the issue here, if this does not help.
>Sample :
VirtualTreeGrid.zip
>
>Thanks for the patience.
>
>Best regards,
>Madhan