I have a template column that has a polygon that i want to work as a button.
I have to double click the polygon, i believe because the cell is editable. How do I disable that for this column and this column only.
column:
<igGrid:TemplateColumn Key="MoveToTop" HeaderText="Move To Top" HorizontalContentAlignment="Center" >
<igGrid:TemplateColumn.ItemTemplate>
<DataTemplate>
<Canvas MouseLeftButtonUp="MoveToTopClick" Margin="-5,-10,0,0" >
<Polygon Stroke="{x:Null}" Fill="{StaticResource AdvertiserButtonColor}">
<Polygon.Points>
<Point X="0" Y="16" />
<Point X="8" Y="0" />
<Point X="16" Y="16" />
</Polygon.Points>
</Polygon>
<!--
<Canvas.Effect>
<DropShadowEffect />
</Canvas.Effect>
-->
</Canvas>
</DataTemplate>
</igGrid:TemplateColumn.ItemTemplate>
</igGrid:TemplateColumn>
Hi,
There is a property called IsReadOnly on the TemplateColumn. Just set it to true.
-SteveZ