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

Programmatically adding an instance of a component

Hi there!

I'm new to SyncFusion and this is a beginner's question (i.e. pretty stupid question).  How can I programmatically add an instance of the Grid control (in other words, Dim Grid1 as New SyncFusion.GridControl )?  I need to do so because I want to use the control inside ActiveReports where the instance is defined as a custom control and must be redefined using code.  Thanks!!!

1 Reply

AA Arulraj A Syncfusion Team November 1, 2018 06:27 AM UTC

Hi Michel, 

Thanks for using Syncfusion products. 

You can initialize a grid control using Syncfusion.Windows.Forms.Grid.GridControl constructor, the following code example explains the same. 

VB 
‘Declaring a new GridControl object 
Private gridControl1 As Syncfusion.Windows.Forms.Grid.GridControl 
'Initializing the GridControl.  
Me.gridControl1 = New Syncfusion.Windows.Forms.Grid.GridControl()  


Please refer the following user guide links for more details. 
Locally installed Samples: {Installed Drive}:\Users\Public\Documents\Syncfusion\Windows\{ES Version}\Grid.Windows\Samples 

Let us know whether this helps also if you need any further assistance on this. 

Arulraj A 


Loader.
Live Chat Icon For mobile
Up arrow icon