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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Syncfusion windows grid [adding - removing columns]

Thread ID:





46283 Jul 10,2006 01:52 PM UTC Jul 13,2006 09:22 AM UTC WinForms 3
Tags: GridControl
Roman Konstnkevitch
Asked On July 10, 2006 01:52 PM UTC

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.

Administrator [Syncfusion]
Replied On 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

Roman Konstnkevitch
Replied On July 12, 2006 05:47 PM UTC

Thanks. Is ther any simular method in GridControl?

Administrator [Syncfusion]
Replied On 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.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon