AD
Administrator
Syncfusion Team
February 9, 2003 11:36 PM UTC
The purpose of e.handled in SaveCellInfo in a virtual grid is to tell the grid whether it should try to store the style information (which includes the text) into the Model.GridData object.
Setting e.Handled to true tells the grid not to store anything (because you have already stored it in your external data source).
If you do not set it to true, then that indicates that you want the grid to try to store it. And this will be a problem unless you allocate (meaning explicitly setting the RowCount/ColCount properties) so there will be space allocated for the values you want the grid to save. The reason things work up to 10 is that is the default value of RowCount.
So, if you want you grid to be a true virtual (that does not need data stored in the GridData object), then you should set e.Handled equal true.
WH
Wayne Hartell
February 10, 2003 11:24 AM UTC
Thanks for the help. This morning I was suspecting that what you said might be the case. For some reason I wasn't associating Text with Style and of course that was my fatal mistake. Thanks also for explaining the 10 rows thing.