This question is locked. New answers and comments are not allowed.
I had this working at one point where I was looping through the rows in a RadGridView, but now it doesn't seem to be doing so. It just iterates through the same row over and over??
Can anyone tell me what I'm missing or if anything looks incorrect with the following that would have changed the row looping process?
Can anyone tell me what I'm missing or if anything looks incorrect with the following that would have changed the row looping process?
private void radGrid1_RowLoaded(object sender, RowLoadedEventArgs e) { var RedValues = ThresholdListStrRed.ToArray(); string strRedValList = ""; char[] seperateRed = new char[] { ',' }; string[] strSplitArrRed; for (int i = 0; i < gridRowCount; i++) { strRedValList = RedValues[0].ToString(); strSplitArrRed = strRedValList.Split(seperateRed); //JUST LOOPS THROUGH THE SAME ROW OVER AND OVER HERE?? if (e.Row is GridViewRow && !(e.Row is GridViewNewRow)) { var mni = e.DataElement; var eq = dynamicGrid.ChildrenOfType<GridViewCell>().Where(d => d.Column.UniqueName == strSplitArrRed[0].ToString() && d.Value.ToString() == strSplitArrRed[3].ToString()).ToList(); eq.ForEach(d => d.Background = new SolidColorBrush(Colors.Red)); } } }