This question is locked. New answers and comments are not allowed.
Hi,
I would like to not show a column, but I would like to have it available on the client side.
When I set the DataColum property IsVisible="false", The cell is not available. How do I get a handle of that cell?
The following code is what I am doing.
I would like to not show a column, but I would like to have it available on the client side.
When I set the DataColum property IsVisible="false", The cell is not available. How do I get a handle of that cell?
The following code is what I am doing.
private void Method1_RowLoaded(object sender, RowLoadedEventArgs ea)
{
GridViewDataControl dataControl = ea.GridViewDataControl as GridViewDataControl;
GridViewRowItem row = ea.Row;
object content = row.Cells[0].Content;
if (content is TextBlock)
{
TextBlock actionCell = content as TextBlock;
if (actionCell.Text.ToString() == "True")
row.FontStyle = FontStyles.Italic;
}
<DataColumn UniqueName="IsActionOrExecution" Width="1" IsVisible ="False" >
<DataColumn.CellTemplate >
<DataTemplate >
<TextBlock Text="{Binding IsActionOrExecution }" />
</DataTemplate>
</DataColumn.CellTemplate >
</DataColumn >
Thanks,
E.