We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

gridrangeinfo updated automatically

How can you maintain consistent gridrangeinfo objects so that their dimension (Top, Bottom, Left and Right) match the grid if you add e.g. a row in the grid before your range.Top? For instance, say that you have a 5x5 grid and two ranges, A(row1 to row3) and B(r4,r5) and you save references to the GridRangeInfo objects. How would you insert a row btw 2 and 3 (that should be included in range A) while ending up with references to the ranges A(row1,row4 including the new row) and B(row5,row6). I can't seem to do this with having to manually update, change the GridRangeInfo references. Should I hold a reference to the GridRangeInfo at all or is this object detached from the grid? Any help would be greatly appreciated:)

1 Reply

AD Administrator Syncfusion Team April 2, 2004 11:53 AM UTC

Create a GridRangeInfoList object to hold your ranges. Then you can use GridRangeInfoList.InsertRows/GridRangeInfoList.InsertCols methods to update the ranges in the rangelist.

Loader.
Live Chat Icon For mobile
Up arrow icon