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
15
Ultragrid valuelist diferent by row
posted

I have a ultragrid with 2 valuelist columns.

when I select a value in the first column I change the valuelist in the second column.

Muy problem is when I change the row, when I select a diferent value en the first column I neede change the valuelist in the second column, but only en the second row.

The valuelist is asociate to the column, Can I associate a diferent valuelist by row?

Top Replies

Parents
No Data
Reply
  • 34830
    Offline posted

    Hello Patricia,

    It is possible to associate a different ValueList on a per-cell basis. Each of the UltraGridCell elements that exists within each row’s Cells collection has a ValueList property that you can use to set the ValueList on a per-cell basis. Something you could do at the start in this case is to utilize the InitializeRow event of the UltraGrid to set your ValueList there, as the event arguments of that event can net you the row that is initializing. From there, you could index that row’s Cells collection and assign a ValueList, rather than assigning it to the column.

    Please let me know if you have any other questions or concerns on this matter.

Children