Hi,
while exporting to pdf, column alignment is not clear, the alignment always defaults to left for items and centre for headers.
GridItem[] dataItems = grid.MasterTableView.GetItems(GridItemType.Item);
// Apply some css style to the data items
foreach (GridItem item in dataItems)
{
foreach (TableCell cell in item.Cells)
{
cell.Style["text-align"] = "center";
cell.Style["vertical-align"] = "middle";
}
}
foreach (TableCell cell in headerItem.Cells)
{
cell.Style["text-align"] = "center";
cell.Style["vertical-align"] = "middle";
}
even i put the coding as like above, it does not affected the document,
actually i set ignore paging =true.If i set it as false, it is reflected the changes in pdf
But i have to set ignorepaging = true
please help me how to align the columns while exporting to pdf with setting ignorepaging = true.
Thanks for any help
while exporting to pdf, column alignment is not clear, the alignment always defaults to left for items and centre for headers.
GridItem[] dataItems = grid.MasterTableView.GetItems(GridItemType.Item);
// Apply some css style to the data items
foreach (GridItem item in dataItems)
{
foreach (TableCell cell in item.Cells)
{
cell.Style["text-align"] = "center";
cell.Style["vertical-align"] = "middle";
}
}
foreach (TableCell cell in headerItem.Cells)
{
cell.Style["text-align"] = "center";
cell.Style["vertical-align"] = "middle";
}
even i put the coding as like above, it does not affected the document,
actually i set ignore paging =true.If i set it as false, it is reflected the changes in pdf
But i have to set ignorepaging = true
please help me how to align the columns while exporting to pdf with setting ignorepaging = true.
Thanks for any help