I want to change the BorderStyle for any single cell of the DataGridView. Also, I want to merge any two cells, can I do it?
I'm using VS2005.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Kirtan PatelPosted Nov 10, 2009, 6:34 AM
you can change the Border of Cell in DataGridView
you can change background of the celll with below code also its is not possible to merge the cells like excel sheets
private void button1_Click(object sender, EventArgs e)
{
dataGridView1.Rows[1].Cells[3].Style.BackColor = Color.Red;
}
if my answer helps you then check "Do you like this answer :)