Вопрос

I have a Ultradropdown in which I have to set the row in select as default. I have a value of the row through which can I make the row selected?

//Code

 Dim workflowId = 256
 cboWorkflows.ActiveRow = ???

In the above code the dropdown has a column in which one of them contains the value 256. so using that I should now make the row selected in dropdown.

How to achieve this?

Это было полезно?

Решение

If you are aware of the column name you could do it like the following:

   For Each row As UltraGridRow In UltraDropDown1.Rows()
        If row.Cells("YouDesiredColumnNameHere").Value = 256 Then
            row.Activate()
        End If
    Next

If this is not helpful, please provide me more details about the usage of the UltraDropDown in your application.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top