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);
sfDataGrid1 is a local variable and can't be called using this. We must put it in the class or remove the 'this' word.