I managed to find this code that works,
The problem is it works when the form loads
How would i merge this into a current routine rather that the form loading? :confused:
Add custom code for the datagrid Paint event.
Private Sub Grid_Paint(ByVal sender As Object,
ByVal e As system.Windows.Forms.PaintEventArgs) Handles Grid.Paint
Dim Myrect As Rectangle
Dim row as Integer = 0
Dim column as Integer = 0
Myrect = Grid.GetCellBounds(row, column)
e.Graphics.DrawRectangle(new Pen(color.red), myrect)
e.Graphics.FillRectangle(New SolidBrush(Color.Red), Myrect)
e.Graphics.DrawString(Grid.Item(row, column), Grid.Font, New SolidBrush(Color.White), Myrect.X, Myrect.Y)
End Sub