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

How to convert the VS.Net Application from Essential Studio version 2.x to 4.x in WinForms GridControl?

Platform: WinForms |
Control: GridControl

Steps for adding GridControl and its features

To convert the application, do the following:

1. Open a new sample in Vs.Net with Essential Suite

2. Drop the GridControl from Windows ToolBox.

3. Select ColWidthEntries from the GridControl Properties.

4. Change the entries in the ColWidthEntries. (column1 => 200 & column3=> 200).

5. Select RowHeightEntries from the GridControl Properties.

6. Change the entries in the RowHeightEntries. (row1 => 50 & Row3 => 50).

The code generated in the window looks like this.


this.gridControl1.ColWidths = ((Syncfusion.Windows.Forms.Grid.GridModelRowColSizeIndexer)(resources.GetObject("gridControl1.ColWidths")));
this.gridControl1.RowHeights = ((Syncfusion.Windows.Forms.Grid.GridModelRowColSizeIndexer)(resources.GetObject("gridControl1.RowHeights")));


Me.gridControl1.ColWidths = (CType(resources.GetObject("gridControl1.ColWidths"), Syncfusion.Windows.Forms.Grid.GridModelRowColSizeIndexer))
Me.gridControl1.RowHeights = (CType(resources.GetObject("gridControl1.RowHeights"), Syncfusion.Windows.Forms.Grid.GridModelRowColSizeIndexer))

7. Run the application.

8.  Open the Convert Syncfusion .resx utility and click the "Choose Resx files to convert" button.

9. Change the Base Version to:

  • 4.100.0. x for .Net FrameWork 1.0
  • 4.101.0. x for .Net FrameWork 1.1
  • 4.102.0. x for .Net FrameWork 2.0

10. Click the “Start converting Files” button to convert the Resx. files.

11. Open the application and switch to the Form Designer.

12. Right-click the GridControl and select the "Touch" property.

You can also go to the Windows Generated Form Designer Code.


//GridControl ColumnWidth ranges added.
this.gridControl1.ColWidthEntries.AddRange(new Syncfusion.Windows.Forms.Grid.GridColWidth[] {new Syncfusion.Windows.Forms.Grid.GridColWidth(0, 35),new Syncfusion.Windows.Forms.Grid.GridColWidth(1, 200),new Syncfusion.Windows.Forms.Grid.GridColWidth(3, 200)});
//GridControl Rowheight ranges added.
this.gridControl1.RowHeightEntries.AddRange(new Syncfusion.Windows.Forms.Grid.GridRowHeight[]{new Syncfusion.Windows.Forms.Grid.GridRowHeight(0, 21),new Syncfusion.Windows.Forms.Grid.GridRowHeight(1, 50), new Syncfusion.Windows.Forms.Grid.GridRowHeight(3, 50)});


'GridControl ColumnWidth ranges added.
Me.gridControl1.ColWidthEntries.AddRange(New Syncfusion.Windows.Forms.Grid.GridColWidth() {New Syncfusion.Windows.Forms.Grid.GridColWidth(0, 35),New Syncfusion.Windows.Forms.Grid.GridColWidth(1, 200),New Syncfusion.Windows.Forms.Grid.GridColWidth(3, 200)})
'GridControl Rowheight ranges added.
Me.gridControl1.RowHeightEntries.AddRange(New Syncfusion.Windows.Forms.Grid.GridRowHeight(){New Syncfusion.Windows.Forms.Grid.GridRowHeight(0, 21),New Syncfusion.Windows.Forms.Grid.GridRowHeight(1, 50), New Syncfusion.Windows.Forms.Grid.GridRowHeight(3, 50)})

13. Run the application.


When you have both versions ( & 4.1.0.X) in GAC, before using the Convert Syncfusion .resx utility, you need to change the Reference (4.1.0.X) to the application.


2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

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

Up arrow icon

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

Live Chat Icon For mobile