DevExpress Sample - Connect Grid with Textboxes


Author
Message
Ricardo Quartier
Ricardo Quartier
StrataFrame User (145 reputation)StrataFrame User (145 reputation)StrataFrame User (145 reputation)StrataFrame User (145 reputation)StrataFrame User (145 reputation)StrataFrame User (145 reputation)StrataFrame User (145 reputation)StrataFrame User (145 reputation)StrataFrame User (145 reputation)
Group: Forum Members
Posts: 87, Visits: 779
Hi bros, I've been watchin that DevExpressSample video, and i have a question. Is that a way to connect the grid with the textboxes? This way the aplication can be improved, click the register on the grid, then the textboxes will move to the same register.

Is that a way to make this work?

Reply
StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Close, Ricardo, but when you navigate Absolute, you need to use the other overload that allows you to specify the absolute index.  Like this:

Private Sub EnhancedList1_SelectedRowChanged() Handles EnhancedList1.SelectedRowChanged
    '-- Establish locals
    Dim loRows As Integer()

    '-- Get the selected rows
    loRows = CType(Me.EnhancedList1.MainView, DevExpress.XtraGrid.Views.Grid.GridView).GetSelectedRows()

    '-- Determine whether there is a row selected
    If loRows.Length > 0 Then
        '-- Navigate to the row within the business object
        Me.BoCadEmpresa1.Navigate(MicroFour.StrataFrame.Business.BusinessNavigationDirection.Absolute, loRows(0))
    End If

End Sub


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search