Welcome to the WinForms feedback portal. We’re happy you’re here! If you have feedback on how to improve the WinForms, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

0
Votes

Hello,

on this url :

https://help.syncfusion.com/windowsforms/datagrid/gettingstarted#creating-application-with-sfdatagrid

to add code directly in form without designer this code is published :

    
SfDataGrid
sfDataGrid1 = new SfDataGrid(); sfDataGrid1.Location = new System.Drawing.Point(85, 108); sfDataGrid1.Size = new System.Drawing.Size(240, 150); this.Controls.Add(this.sfDataGrid1);

sfDataGrid1 is a local variable and can't be called using this. We must put it in the class or remove the 'this' word.