change ur code to...
DataTable dt = new DataTable();
dt.Columns.Add("name");
DataRow dr;
dr = dt.NewRow();
dr["name"] = "Rajesh";
dt.Rows.Add(dr);
dr = dt.NewRow();
dr["name"] = "Ratnesh";
dt.Rows.Add(dr);
DataGridViewRow dr1;
for (int i = 0; i < dt.Rows.Count; i++)
{
dr1 = new DataGridViewRow();
dr1.CreateCells(dataGridView1);
dr1.Cells[0].Value = dt.Rows[i]["name"];
dr1.Cells[1].Value = true;
dataGridView1.Rows.Add(dr1);
}
DataGridViewRow dr1;
dr1 = new DataGridViewRow();
dr1.CreateCells(dataGridView1);
dr1.Cells[0].Value = "Rajesh";
dr1.Cells[1].Value = true;
dataGridView1.Rows.Add(dr1);