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
225
How you make alternate row highlight go all the way across?
posted

We are using the alternate row highlighting on the datagrid. However, if the last column doesn't stretch all the way to the end, the alternate row highlighting doesn't either. How can we achieve this?

PS - Isn't there a way to upload an image to this forum? I only see an option to add an existing Image URL.

Parents
No Data
Reply
  • 8576
    Offline posted
    Hi -
     
    The only way to achieve this is to force the record to stretch all the way to the right edge since it is the record that is being highlighted.  There are basically 2 ways to do this:
    • Set the AutoFit property to true on the XamDataGrid - this will size all columns to fit within the width available to the grid
    • Manually resize the width of the last column in the grid to use up all remaining space
    Joe
     
Children
No Data