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!

Highlighting the datagrid cell 1

Status
Not open for further replies.

njahnavi

Technical User
Dec 29, 2008
136
0
0
US
I am using vb.net 2.0
I am pretty newbie to vb.
I am having a datagrid and everything is working fine.
OUt of all the columns in the datagrid only two columns are editable to the user and my pl wants them to be higlighted with yellow colur.

pelase let me know how to do it.

Thanks in advance
 
Assuming you are talking about a DataGridView - not a DataGrid, here is an example:
Code:
Me.DataGridView1.Columns(0).DefaultCellStyle.BackColor = Color.Yellow
 
Thanks RiverGuy Worked like I wanted too...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top