Hi Nadya,
Thanks for the reply. On the dropdown, if the selected index is 0, the 3rd column should be visible "True" & 5th column should be visible "False" on the Radgrid
On the dropdown, if the selected index is 1, the 3rd column should be visible "False" & 5th column should be visible "True" on the Radgrid
To perform the above process we have written a function & not has an event (ViewCellFormatting).
While writing the below code for the function, we get an error as "Object Reference not set to an instance of an object". How can we handle this?
Code Snippet :
Function PopulateHistory(SelectedIndex As Integer)
If SelectedIndex = 0 Then
rdgrdDetails.Columns(3).IsVisible = True
rdgrdDetails.Columns(5).IsVisible = False
Else
rdgrdDetails.Columns(3).IsVisible = False
rdgrdDetails.Columns(5).IsVisible = True
End If
End Function
If CDbl(radGridView1.Rows(0).Cells("Price").Value) = 0 Then
radGridView1.Columns("Price").HeaderText = String.Empty
Else
radGridView1.Columns("Price").HeaderText = "Price"
End If
We have the page as
Screen Shot link
But we need the page to be like the below screenshot
Screen Shot link