How can I disable the MouseOver and MouseDown on the Column header in the XamDataGrid? I don't want the mouse to have any effect on it -- no hilighting, sorting, etc.
Hello,
Thank you for you feedback. I am glad that my approach was helpful to you. Please do not hesitate to contact us if you have any further questions.
Thank you! That worked just fine.
For others looking for a way to make the column header in xamdatagrid not 'clickable', here's the code snippet: <igDP:XamDataGrid x:Name="myDataGrid" BindToSampleData="True"> <igDP:XamDataGrid.Resources> <Style TargetType="igDP:LabelPresenter"> <Setter Property="IsHitTestVisible" Value="False"/> </Style> </igDP:XamDataGrid.Resources> </igDP:XamDataGrid>
Thank you for your post. I have been looking into it and I can suggest to set the IsHitTestVisibility property of the LabelPresenter to false. I have created a small sample that demonstrates this behavior for you. Please find the attached sample and feel free to let me know if you require any further assistance on the mater.