Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
C# Helper...
 
XML RSS Feed
Follow VBHelper on Twitter
 
 
 
MSDN Visual Basic Community
 
 
 
 
 
TitleChange the color of a DataGridControl's editing control in Visual Basic 2005
DescriptionThis example shows how to change the color of a DataGridView control's editing control in Visual Basic 2005.
KeywordsDataGridView, edit, edit cell, color, cell color, Visual Basic 2005, VB 2005
CategoriesControls, VB.NET
 
In the control's EditingControlShowing event handler, set the editing control's CellStyle.BackColor and CellStyle.ForeColor properties.
 
Private Sub DataGridView1_EditingControlShowing(ByVal _
    sender As Object, ByVal e As _
    System.Windows.Forms.DataGridViewEditingControlShowingEventArgs) _
    Handles DataGridView1.EditingControlShowing
    e.CellStyle.ForeColor = Color.Yellow
    e.CellStyle.BackColor = Color.Red
End Sub
 
 
Copyright © 1997-2006 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated