Community discussion forum

How to Change Color fo DataGridView Column/Row divider.

  • 4 months ago

    Ok, so i've got this DataGridView in a VB.net application i've been working on and I cannot seem to figure out how to change the color of the column or row divider?!?! The DataGridView is bound to a dataset and rows are generated and deleted dynamically by the user. Everything looks great, except I can't figure out how to change the color of those pesky dividers. I know its do-able, i've seen it done before. My goal is for the DataGridView to not really appear like a "GridView", but like a list of items. Like I said, programmatically and design wise, everthing is finished except for this. The background is black, as well as, the gridview background. The row and column "dividers" appear like a control "Gray". If anyone knows how, please through some of that good knowledge my way.

    Post was edited on 26/06/2009 16:49:49 Report abuse
  • 2 months ago

    datagridview1.Columns(0).DefaultCellStyle.BackColor = Color.Aqua

    datagridview1.rows(0).DefaultCellStyle.BackColor = Color.Aqua

Post a reply

Enter your message below

Sign in or Join us (it's free).

We'd love to hear what you think! Submit ideas or give us feedback