Home Forums WinForms controls Xceed Grid for WinForms Problem with ComboBox event

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #13847 |

    Hi,

    I have added an event to the editor rather than for cell as I read it somewhere in the forums.

    AddHandler Typeeditor.SelectedIndexChanged, AddressOf Me.Typeeditor_SelectedIndexChanged

    When I click on the combobox the event gets fired. After selecting a item again the event gets fired. So till here no problem but the textbox value isnt getting updated. If I select another data on another cell then the textbox gets updated. What could be the problem.

    Private Sub Typeeditor_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)
    Call GetSortOrder()
    End Sub

    Public Sub GetSortOrder()
    Dim rows As Xceed.Grid.Collections.ReadOnlyDataRowList = sprdCriteria.GetSortedDataRows(True)

    For Each row In rows
    strOrder = row.Cells(6).Value
    If strOrder <> “” Then
    txtOrder.text = strOrder
    End If
    Next
    End Sub

    Is there any other way how I can achieve this? Or the event I used is not the right one? Any1 please help me.

    Imported from legacy forums. Posted by prem_rajani (had 1970 views)

    User (Old forums)
    Member
    Post count: 23064

    Hello its me again. I even tried out this possiblity

    Private Sub Typeeditor_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)
    Dim editor As GridComboBox = CType(sender, GridComboBox)
    strOrder = editor.SelectedItem
    Call GetSortOrder()
    End Sub

    But even this doesnt work.

    Imported from legacy forums. Posted by prem_rajani (had 3088 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.