AD
Administrator
Syncfusion Team
July 22, 2004 01:38 PM UTC
Yes, this is by design.
Each GridRangeInfo object has a RangeType member, and depending on the RangeType, the other members like Left, Right, Top and Bottom may be populated with valid values or not. But, again depending upon RangeType, some of these values may be meaningless.
In the case when the RangeType is Table (as in this your case), none of the values can be used.
If you want to force a GridRangeInfo object to have fully populated members, then use code like:
range = range.Expand(1, 1, grid.RowCount, grid.ColCount);
This will guarantee Top, Botton, Left and Right are populated as you expected.