Click here to Skip to main content
15,916,398 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
I'm creating datagridview to display list of images.
In datagridview i'm showing image thumbnails of size 100X100 pixel.
In each row i would like to add button remove. For this i use DataGridViewButtonColumn.

Problem is that button looks like not a standard button. First of all it fills all cell content. This can be fixed with bottom and top padding adjustments.
Second problem is that button is white. Changing back color changes color for button and for background.

Can someone help me with this problem?
Posted

Changing the back color of datagridviewbutton object is not a straight forward one..I found an article on this..may be of some help to you:
http://bluefenix.net/blog/archive/2007/12/13/datagridview_colorpicker_using_a_datagridviewbuttoncolumn.aspx[^]
 
Share this answer
 
Hello

you can use any kind of button with datagridview but there must be "CommandName" because using CommandName you can write code for add,delete,update
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900