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
435
How show the visible index in a calculate column of a grid
posted

Hi,

I need to rank my rows in a grid on the if the value in one column is not 9999 and the grid is sorted as the rows should be ranked I tried to add an unbound column and a formula that shows the visible index as a ranking but I don't seem to get in working.

Any Ideas

Parents
No Data
Reply
  • 29065
    Offline posted

    Hello Ronny, 

    Do you have the unbound field displayed currently?

    From my understanding you wish to have an unbound column that provides the visible index of the rows regardless if the grid is sorted, etc. If so, you can hook the grid's InitializeRow event and update the unbound field's cell's with it's VisibleIndex property. 

    private void ultraGrid1_InitializeRow(
       object sender,
       InitializeRowEventArgs e)
    {
       e.Row.Cells["Calculated_COLUMN"].Value = e.Row.VisibleIndex.ToString();
    ; }
Children
No Data