Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
160
Finding the Max value in a grid column
posted

How would I find the Maximum value of a cell in the column named "Num"?  I have looked at

UltraGrid1.Rows.Max(

but I don't know what to pass in the Max function.

 

Thanks

Parents
No Data
Reply
  • 48586
    posted

    Hello ,

     

    UltraGrid.Rows.Max(row => row.Cells[“Num”].Value), will retrieve you the row with the maximum value of top level rows as its elements. They can be instances of UltraGridRow or UltraGridGroupByRow if you have group-by rows in band 0.

     

     

    Please let me know if you have any  further questions  

Children