Hi All...

I have a datagrid with values bound to it..I have two columns in the datagrid.The first column is the name field and the second column is age field..Now i need to higlight the highest age which is found in the datagrid..I want to differentiate it from other rows by giving some color differences in the datagrid...

Someone help in this regard....


Balaguru

Me.CustomersDataGridView.Rows(1).Cells(3).Selected() = True

this is used to selected a row or a cell in the DataGrid

Me.CustomersDataGridView.SelectedCells(0).Style.ForeColor = Color.Coral

This can used to to change the Style (backcolor, font color, etc....) of the now selected cells.

I am sure you can do the work to figure out which of the ages is the highest.... but this will highlight, or bold or whatever you want to do to that row or cell.

Hope this helps 8-D

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.