The logic of columns alignment using AlignGridColumns
and AlignColumns
is interfering with the workings of my InitializeFormControl
, which used to define the fields' data types for them to be aligned in the gridview.
InitializeFormControl()
private void InitializeFormControl()
{
FormControlUtil f = new FormControlUtil(myDBSetting);
// Currency fields
f.AddField("TotalExTax", FormControlUtil.CURRENCY_FIELD);
f.AddField("ServiceCharge", FormControlUtil.CURRENCY_FIELD);
f.InitControls(this);
}
So, removing both AlignGridColumns
and AlignColumns
solved the issue.
Credits to my senior.