Articles in this section
Category / Section

How to convert the VS.Net Application in WinForms GridControl?

5 mins read

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.



I hope you enjoyed learning about how to convert the VS.Net Application in WinForms GridControl.

You can refer to our  WinForms GridControl feature tour page to know about its other groundbreaking feature representations. You can also explore our WinForms GridControl documentation to understand how to create and manipulate data.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.

If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment