This seems like it should be an easy thing, but I'm hitting roadblocks all over the place.
I have a RadGridView inside of a User Control that I use on more than one page. The first column of the RadGridView is a GridviewSelectColumn, however, in certain situations, I don't want this column to appear.
The first thing I tried to do was Name it, then hide it:
<grid:GridViewSelectColumn x:Name="SomeName" />
(in Load Event)
SomeName.IsVisible = false;
But this fails because SomeName always comes up as null.
Then I tried creating a public property and trying to bind it to the column:
<grid:GridViewSelectColumn IsVisible="{Binding IsHidden}" />
(in code behind)
public bool IsHidden{ get; set; }
This did not seem to work either.
How the heck do I hide this conditionally?
I have a RadGridView inside of a User Control that I use on more than one page. The first column of the RadGridView is a GridviewSelectColumn, however, in certain situations, I don't want this column to appear.
The first thing I tried to do was Name it, then hide it:
<grid:GridViewSelectColumn x:Name="SomeName" />
(in Load Event)
SomeName.IsVisible = false;
But this fails because SomeName always comes up as null.
Then I tried creating a public property and trying to bind it to the column:
<grid:GridViewSelectColumn IsVisible="{Binding IsHidden}" />
(in code behind)
public bool IsHidden{ get; set; }
This did not seem to work either.
How the heck do I hide this conditionally?