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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Kirtan PatelRank #292 · 8.6K reputationPosted Nov 10, 2009, 1:34 AM EST
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 :)