Welcome to the ASP.NET Core feedback portal. We’re happy you’re here! If you have feedback on how to improve the ASP.NET Core, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

0
Votes

Hello all,


i'm trying to adjust the borders of my grid here i notice unfortunately when i try to paint only the top and bottom line it seems to be that when i adjust left and right and then adjust the top the settings of left and right are just overwritten and it shows all borders again....


Do you have any ideas here?



Example:


PdfGridCellStyle cellStyle = new PdfGridCellStyle();


            cellStyle.Borders.Bottom.Color = new PdfColor(Color.Black);

            cellStyle.Borders.Left.Color = new PdfColor(Color.Transparent);

            cellStyle.Borders.Right.Color = new PdfColor(Color.Transparent);

            cellStyle.Borders.Top.Color = new PdfColor(Color.Black);

            cellStyle.CellPadding = new PdfPaddings(3, 3, 4, 2);


= all borders are black


------------------------------------------


PdfGridCellStyle cellStyle = new PdfGridCellStyle();


cellStyle.Borders.Top.Color = new PdfColor(Color.Black);

            cellStyle.Borders.Bottom.Color = new PdfColor(Color.Black);

            cellStyle.Borders.Left.Color = new PdfColor(Color.Transparent);

            cellStyle.Borders.Right.Color = new PdfColor(Color.Transparent);

            

            cellStyle.CellPadding = new PdfPaddings(3, 3, 4, 2);


= all borders are transparent

Kind Regards