Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > Datagrid & Cell Color
 

Datagrid & Cell Color

Hi,

There is a way to paint a deteminated cell in the datagrid with the reflection... ?I need something like that:

sub PaintCell(rowIndex as Integer, colIndex as Integer, myColor as Color)

....

' code to fill with myColor the cell

....

end sub

Thank you.

Gianni.

Ceres80  Wednesday, November 07, 2007 8:46 AM
Sorry Relection will not help you here. You need to create a custom column style for this

http://windowsclient.net/blogs/faqs/archive/2006/05/30/how-do-i-specially-color-only-the-current-cell-of-a-read-only-datagrid.aspx
Ken Tucker  Wednesday, November 07, 2007 5:07 PM
Sorry Relection will not help you here. You need to create a custom column style for this

http://windowsclient.net/blogs/faqs/archive/2006/05/30/how-do-i-specially-color-only-the-current-cell-of-a-read-only-datagrid.aspx
Ken Tucker  Wednesday, November 07, 2007 5:07 PM

You can use google to search for other answers

Custom Search

More Threads

• adding new data to the master/detail form
• Can't Connect to SQL Server 7(NET)
• Capture the row information from a datagridview
• Singleton Typed DataSet
• Binding combination of fields to one textbox.
• Export columns from datagridview to Excel
• datagridviewcomboboxcolumn select the first item
• How to sort bound Header/Detail DataGrids?
• HyperLink with JavaScript
• how can I retrieve a newly added autoincremented key index?