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

Syncfusion windows grid [adding - removing columns]

as farr as i remember version 3.*.* contained method AddColumn(int indexAt,int count) as well as RemoveColumn. i can''t find such feature in version 4.1.62. How about version 4.2 ? Thanks.

3 Replies

AD Administrator Syncfusion Team July 10, 2006 07:21 PM UTC

Hi Roman, We are not able to find any similar method in our source code of our versions. We hope the method referring to is a user defined method. The following code snippet shows a method to insert columns in the gridcontrol grid.Model.Cols.InsertRange(int InsertAt, int count) For GridDataBoundGrid : public GridBoundColumn AddColumn(string MappingName, string HeaderText) { GridBoundColumn gbc = new GridBoundColumn(); gbc.MappingName = MappingName; gbc.HeaderText = HeaderText; gridDataBoundGrid1.GridBoundColumns.Add(gbc); return gbc; } Best regards, Madhan


RK Roman Konstnkevitch July 12, 2006 05:47 PM UTC

Thanks. Is ther any simular method in GridControl?


AD Administrator Syncfusion Team July 13, 2006 09:22 AM UTC

In a GridControl, you can use grid.Model.Cols.InsertRange to insert columns. To add columns on the right side, you can just increment grid.ColCount.

Loader.
Live Chat Icon For mobile
Up arrow icon