Hey, how can i hide a hierarchy column in a radgrid from the server side (VB.NET)?
Depending on authorisation, for exemple if a checkbox is checked.
(Not working)
if mycheckbox.checked = true then
radgrid1.columns(0).display = false
radgrid1.columns(0).visible = false
End if
(working, only hide the arrow in the hierarchy column)
I need to hide the column because the waste of space in the grid.
I dont want to make another radgrid in copy without the detailtable and call:
if mycheckbox.checked = true then
radgrid1.visible = true
radgrid2.visible = false
else
radgrid1.visible = false
radgrid2.visible = true
End if
How can i hide the column(0) of the radgrid in the server side?
TY for your reply
Depending on authorisation, for exemple if a checkbox is checked.
(Not working)
if mycheckbox.checked = true then
radgrid1.columns(0).display = false
radgrid1.columns(0).visible = false
End if
(working, only hide the arrow in the hierarchy column)
Dim
numberoflines As Integer = radgrid1.Items.Count
For i = 0 To numberoflines - 1
radgrid1.Items(i).Cells(0).Controls(0).Visible =
False
Next i
I need to hide the column because the waste of space in the grid.
I dont want to make another radgrid in copy without the detailtable and call:
if mycheckbox.checked = true then
radgrid1.visible = true
radgrid2.visible = false
else
radgrid1.visible = false
radgrid2.visible = true
End if
How can i hide the column(0) of the radgrid in the server side?
TY for your reply