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
570
@Infragistics: Missing method ".HasNextSibling" in UltraDataRow ?
posted

Hi Infragistics !

I'm missing the method ".HasNextSibling" in class UltraDataRow, while this method exists in the class UltraGridRow.

    e.g. : UltraGridRow rowNext = gridCell.Row.GetSibling(SiblingRow.Next);

So, how can I find out, if a UltraDataRow has a successor data row without running into a exception ?

Any advice or ideas you might have would be very welcome. Thanks in advance !

Kind regards,

Claus


Parents
No Data
Reply
  • 37774
    Verified Answer
    posted

     Claus,

    One solution would be to compare the index of the UltraDataRow with the total number of rows in the parent collection, such as:

    if(row.Index < row.ParentCollection.Count - 1)
    {

        row = row.ParentCollection[row.Index + 1];

        // Do things 

    -Matt 

Children
No Data