Form Load event Add Gridview with Combox in Windows Application

Jayakumars
Posted by Jayakumars under ASP.NET AJAX category on | Points: 40 | Views : 1001
Form Load event Add Gridview with Combox in Windows Application
====================================================
private void Form1_Load(object sender, EventArgs e)
{
DataGridViewComboBoxColumn combo1 = new DataGridViewComboBoxColumn();
combo1.HeaderText = "Country";
combo1.Items.Add("India");
combo1.Items.Add("Srilanka");
combo1.Items.Add("Pakistan");
combo1.Items.Add("SouthAfrica");
dataGridView1.Columns.Add(combo1);
}

Comments or Responses

Login to post response