Hello,
I´m working with radgridview for winforms, I'm a begginer in it, and I have a problem, I don't know how to populate the template of de grid, I try with this code:
but it doesn't work as I expected, when I expanded the principal grid, the template(or de child grid) is empty, so the function Obtener_DetalleViaje return information... I'm not shure it is the way to populate it, someone can help me?
I hope to be clear, thanks in advance
I´m working with radgridview for winforms, I'm a begginer in it, and I have a problem, I don't know how to populate the template of de grid, I try with this code:
Private
Sub rgvProgramacionEntregasCabecero_ChildViewExpanded(sender As Object, e As Telerik.WinControls.UI.ChildViewExpandedEventArgs) Handles rgvProgramacionEntregasCabecero.ChildViewExpanded
Try
'gvtProgramacionEntregasDetalle.DataSource = Obtener_DetalleViaje(rddlCentroDistribucion.SelectedValue, Today.AddDays(-30), _GrupoViaje)
Me.rgvProgramacionEntregasCabecero.Templates(0).DataSource = Obtener_DetalleViaje(rddlCentroDistribucion.SelectedValue, Today.AddDays(-30), _GrupoViaje)
End Using
Catch ex As Exception
RadMessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, RadMessageIcon.Error)
End Try
End Sub
but it doesn't work as I expected, when I expanded the principal grid, the template(or de child grid) is empty, so the function Obtener_DetalleViaje return information... I'm not shure it is the way to populate it, someone can help me?
I hope to be clear, thanks in advance