Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting the color of a buttoncolumn

Status
Not open for further replies.

kabirpatel

Programmer
Nov 16, 2006
12
GB

Hi all,

How can I set the color property of a button column in a dataviewgrid control?

I have dynamically added my column as follows:

DataGridViewButtonColumn b = new DataGridViewButtonColumn();
grid.Columns.Insert(0, b);

I can set text properties by doing:

b.Text = "Edit"; etc....

but cannot set the color.

Thanks
Kabir
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top