Traverse UltraWebGrid to get rows and get column values from rows

if (grdInfoList != null && grdInfoList.Rows.Count > 0 )    //When using a value, first determine whether it is empty
{
    foreach (UltraGridRow row in <span style= "color:#ff0000;" >UltraWebGrid</span>.Rows) //loop through the list to get each row
    {
        string str = row.Cells.FromKey( "STR" ).ToString();  //Get the value of the STR column of the row
    }
}

The UltraWebGrid marked in red is the ID of the UltraWebGrid control

Leave a Comment

Your email address will not be published. Required fields are marked *