DataGrid control in WPF is behaving weird. When I click on a row it should be selected. There is a problem when I click on cell border or row border. It simply does nothing
Since you hadn't posted any xaml, or a picture of how your datagrid looks. It's hard to pint point the problem.
However, This might be caused by a Hit Test failing. The mouse hit test detects an element by the matrix of colored pixels which represent it.
Try coloring all the pixels by setting the background to Transparent. Transparent would not effect how your row looks and would color it for the Hit test :
<DataGrid>
<DataGrid.RowStyle>
<Style TargetType="DataGridRow">
<Setter Property="Background" Value="Transparent" />
</Style>
</DataGrid.RowStyle>
</DataGrid>