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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Please Clarify

Thread ID:

Created:

Updated:

Platform:

Replies:

65474 Jul 26,2007 11:30 AM UTC Jul 27,2007 01:32 AM UTC Windows Forms 1
loading
Tags: GridControl
hemanth
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.
http://www.syncfusion.com/support/Forums/message.aspx?MessageID=29493

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
grid.Model.Cols.MoveRange(from,target);

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.

\\Syncfusion\EssentialStudio\5.1.0.51\Windows\Grid.Windows\Samples\2.0\FeatureSamples\GridControlSort

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

\\Syncfusion\EssentialStudio\5.1.0.51\Windows\Grid.Windows\Samples\2.0\Appearance\CellStyles

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

http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=340

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

Regards,
Ajish.

CONFIRMATION

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.

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

;