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
25
Grid Lines
posted

Hi!

Is it possible to turn off the grid lines in XamGrid so they are not visible?

Is it even possible to turn the heavy line on a fixed column?

Thanks in advance,

Blair

Parents
  • 34830
    Offline posted

    Hello Blair,

    To turn off the vertical grid lines in XamGrid, I would recommend writing a Style for CellControl and setting the BorderThickness property to 0.

    To put a heavier border line on fixed columns, in WPF I would recommend writing a style for CellControl and using a Trigger to check if the column is fixed or not, but in Silverlight, there are no Triggers. To get around this, you could write a Style with a Key for CellControl that sets the BorderThickness or BorderBrush properties, depending on what you would like to achieve. Then, use this style as a StaticResource and set the CellStyle of your fixed columns to this style.

    I have attached a sample application demonstrating the above. The columns on the left are the ones without grid lines, and the ones on the right are the fixed columns.

    Please let me know if you have any other questions or concerns on this matter.

    Sincerely,
    Andrew
    Developer Support I
    Infragistics Inc.
    www.infragistics.com/support

    XamGridLinesCase.zip
Reply Children
No Data