how to hightlight columns in datagrid in C#.net.

Please take a few extra seconds to type out a complete question when posting.

Do you mean "select" the cell so the contents are highlighted or change the background color? To change the color:

this.dataGridView1.Columns[1].DefaultCellStyle.BackColor = Color.Red;
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.