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!>
Thanks for joining our community and helping improve Syncfusion products!
Hello,
on this url :
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.