Hi
Jb,
Thank
you for using Syncfusion product.
We
can set the background color using style.BackgroundBrush property and text can
be justified in cell using PdfStringFormat.Alignment .
Please
refer the below code snippet:
//String format
PdfStringFormat format=new PdfStringFormat();
//Alignment the text to right
format.Alignment=PdfTextAlignment.Right;
//Apply the background to the first 3 rows
pdfGrid.Rows[i].Style.BackgroundBrush = PdfBrushes.Yellow;
//Assign the format to particular cells
pdfGrid.Rows[i].Cells[j].StringFormat = format;
//Remove the bottom border for previous row
pdfGrid.Rows[i - 1].Cells[j].Style.Borders.Bottom = PdfPens.Transparent;
//Remove the top border from row
pdfGrid.Rows[i].Cells[j].Style.Borders.Top = PdfPens.Transparent;
We
have attached the sample for removing the grid row top/bottom borders in below
link:
http://www.syncfusion.com/downloads/support/directtrac/137404/PdfGridBorderSample-1960878967.zip
Please
try this and let us know if you have any further assistance .
Thanks,
Abirami.