Quantcast
Viewing all articles
Browse latest Browse all 256

WPF DataGrid Help

Hi All

I want to loop through a datagrid and change the row color if a cell has a value is greater then my alarm value

Sum thing like this
Code:


Dim Alarm1 as string = "245.00"

For Each band As Forms.DataGridViewBand In DG1.Items
                If DG1.Items(band.Index).Cells("Down Stream").Value > Alarm1 Then
                    band.DefaultCellStyle.BackColor = System.Drawing.Color.Red
                End If
            Next


Viewing all articles
Browse latest Browse all 256

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>