I have a css class set-up like so:
.cellOneCellPadding {
padding-left: 9pt !important;
}
Now I am attempting to add the padding to a RadGrid from the C# code behind like this
foreach (GridDataItem row in r.MasterTableView.Items)
{
row["MainData"].CssClass = "cellOneCellPadding";
}
However, the - 9pt padding on the left is not applied, nor do I get an error. What would be the appropriate way to apply the 9pt padding to one column only of a radgrid?
EDIT
I have also tried
row["MainData"].Style.Add("padding-left", "9pt !important");
row["MainData"].Attributes.Add("padding-left", "9pt !important");