Highlighting a Row in a Datagrid
-
I need to Highlight a Row in a datagrid based on the user input. For example when someone adds an item to their shopping cart...I would like for the row in the cart to be highlighted. So this way they know that this item was added to their shopping cart. So far I've found how to change the color of a row... dgrdSelect.items.item(0).backcolor = System.Drawing.Color.yellow ...but I need to find the row based on the product number. For example I've tried many variations like: dgrdselect.items.item(dgrdselect.items.itemindex.findbyvalue("401")).backcolor = System.Drawing.Color.Yellow But that didn't seem to work... The control that I would like to findbyvalue is "Product_no" So basically highlight the row where product_no=401. Anyone ever do this before? Thanks, jordan