| | |
How To highlight a row or a column in a datagrid....?
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
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
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
ASP.NET Syntax (Toggle Plain Text)
Me.CustomersDataGridView.Rows(1).Cells(3).Selected() = True
this is used to selected a row or a cell in the DataGrid
ASP.NET Syntax (Toggle Plain Text)
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
- mike mclennan
![]() |
Similar Threads
- How to highlight the datagrid row..... (JavaScript / DHTML / AJAX)
- copying Msflexgrid row and column data to excel (Visual Basic 4 / 5 / 6)
- Getting Current Row Values in the DataGrid control (ASP.NET)
- Anyway to display the Row Number in DataGrid? (ASP.NET)
- Deleting a Row From A DataGrid (VB.NET)
- Using SelectedIndexChanged to change another column on the datagrid (C#)
- Adding a checkbox column dynamically (C#)
Other Threads in the ASP.NET Forum
- Previous Thread: about asp.net syllabus
- Next Thread: i want to post data with screen scrap page..
| Thread Tools | Search this Thread |
.net 2.0 3.5 ajax alltypeofvideos appliances application asp asp.net beginner box browser businesslogiclayer button c# cac checkbox child class compatible content contenttype control countryselector courier dataaccesslayer database datagrid datagridview datalist deployment development dgv dialog dropdownmenu dynamic dynamically edit embeddingactivexcontrol feedback fileuploader fill findcontrol flash flv form gridview gudi iis image javascript list listbox menu mouse mssql nameisnotdeclared news novell numerical opera order parent problem radio ratings redirect registration relationaldatabases reportemail schoolproject search security select serializesmo.table sessionvariables silverlight smoobjects software sql sql-server ssl tracking treeview typeof validatedate validation vb.net videos vista visual-studio visualstudio vs2008 web webapplications webarchitecture webdevelopment webprogramming wizard xsl





