Hello
Does it have a way to get the screen resolution in code behind
because in my code behind I have code like that
But instead to have fixed values I would like to have screen resolution value to set the height.
Thanks!
Does it have a way to get the screen resolution in code behind
because in my code behind I have code like that
Private Sub RadGrid_BanqueCV_DataBound(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadGrid_BanqueCV.DataBound |
Dim grid As RadGrid = TryCast(sender, RadGrid) |
Dim gridItems As Integer = grid.MasterTableView.Items.Count |
If gridItems < 5 Then |
grid.Height = 450 |
Else |
grid.Height = 450 + (gridItems * 20) |
End If |
If grid.Height.Value > 650 Then |
grid.Height = 650 |
End If |
End Sub |
Thanks!