Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2320
Highlight selected cell only and not entire record
posted

If I set the CellClickAction to be SelectCell or EnterEditModeIfAllowed (so when a user clicks in the grid, a cell is being selected), the entire record still gets highlighted.

Is there an easy way to prevent this, so only the cell is highlighted and not the record as well? Or can I only do this by changing the DataRecord's template?

  • 30945
    Offline posted

    Hello,

     

    Excuse me for the late reply, we are making efforts to ensure all posts are addressed by an Infragistics expert. We believe that the other community members could benefit from this thread as well. I have been looking into the appearance that you are looking for and I can suggest adding the following style for the DataRecordCellArea in the XamDataGrid’s Resources section:

     

     

    <igDP:XamDataGrid.Resources>
        <Style TargetType="{x:Type igDP:DataRecordCellArea}">
            <Setter Property="BackgroundActive" Value="Transparent"/>
            <Setter Property="BorderActiveBrush" Value="Transparent"/>
        </Style>
    </igDP:XamDataGrid.Resources>
    

     

     

    By doing so only the selected cell will appear highlighted.

     

    If you need any further assistance please do not hesitate to ask.

     

    Sincerely,

    Krasimir

    Developer Support Engineer

    Infragistics

    www.infragistics.com/support