Hello
I have a radgrid with mastertableView and detailtableView...
In the RadGrid_DataBound event I would like to know how much detailtable row does it have.
Here is a part of my code
I would like to know the items.count of the child of my mastertableview
something like
grid.mastertableview.detailtables.items.count..
Hope that makes sense
Thank you
I have a radgrid with mastertableView and detailtableView...
In the RadGrid_DataBound event I would like to know how much detailtable row does it have.
Here is a part of my code
Private Sub RadGrid_offre_DataBound(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadGrid_offre.DataBound |
Dim grid As RadGrid = TryCast(sender, RadGrid) |
Dim gridItems As Integer = grid.MasterTableView.Items.Count |
If gridItems < 6 Then |
grid.Height = 250 |
Else |
grid.Height = 250 + (gridItems * 30) |
End If |
If grid.Height.Value > 650 Then |
grid.Height = 650 |
End If |
End Sub |
something like
grid.mastertableview.detailtables.items.count..
Hope that makes sense
Thank you