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

Please Clarify

Thread ID:





65474 Jul 26,2007 11:30 AM UTC Jul 27,2007 01:32 AM UTC WinForms 1
Tags: GridControl
Asked On July 26, 2007 11:30 AM UTC

1. Increase all possible celltypes for gridcontrol, make the gridcontrol bindable, allow sorting and column rearrange in the gridcontrol.

3. Make gridgroupingcontrol programatically insert data.

4. Allow to insert row between rows in both grid and gridgrouping controls.

5. Radiobutton orientation in a cell in gridcontrol.

6. Cells must be validated using regular expressions.

Ajish [Syncfusion]
Replied On July 27, 2007 01:32 AM UTC

Hi Hemanth,

Here is the details on your queries,

1. GridControl has numerous celltypes supported. Please refer to our shipped samples under CellTypes in the browser samples, that has a list of the different cell types that, can be used in the grid.

GridControl is not intended to be bound to any datasource. But, you can use the PopulateValues method to move the data from the datasource to the grid. Refer the following forum thread.

To rearrange columns in grid,

Set the gridControl1.ControllerOptions |= GridControllerOptions.DragColumnHeader; or the gridControl1.AllowDragSelectedCols = true; to enable moving columns by click and drag at run time.

To move the cols through code the Model.Cols.MoveRange method can be used.

grid.Model.Cols.MoveRange(from,count,target); //to move more than one col

Sorting Feature:

By default, GridControl does not support sorting as GridDataBoundGrid and GridGroupingControl does, because sorting is being done through the IBindingList sort support of the datasource of the grid.

Please refer to the GridControlSort sample in the browser samples shipped with the product, which will help you to do sorting for the gridcontrol.


2. To programatically insert data in gridgroupingcontrol, use the SetValue method of the record. Below is the code snippet.

Record rec = gridGroupingControl.Table.Records[0];
rec.SetValue(columnName, "New Value");

3. To insert rows in gridcontrol, use the code below.

// Insert Rows
this.gridControl1.Rows.InsertRange(4, 3);

GridGroupingControl just reflects the contents of the underlying datasource. So, if you want to insert row between any of the rows, then you will have to insert a row to the datasource which will be reflected in the grid.

4. Radiobutton orientation in cell

Set the style.Font.Orientation property for the cell. See code in this sample


6. For the Cell validation please refer the following KB Article


Kindly take a look and let me know if you need any further details.



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