private void button1_Click(object sender, EventArgs e) { // ExStart:AddColumn // Accessing first worksheet of the Grid Worksheet sheet = gridDesktop1.Worksheets[0]; // Adding column to the worksheet sheet.AddColumn(); // ExEnd:AddColumn MessageBox.Show("Column added."); }