Hi,
I am binding the grid columns dynamically using datatable and assiging width like this
int clms = grdComRpt.TableDescriptor.Columns.Count;
int wdth = 100 / clms;
for (int i = 0; i < clms; i++)
{
if (i == 0)
{
int wd = wdth + (100 - (wdth * clms));
grdComRpt.TableDescriptor.Columns[i].Width = wd;
}
else
grdComRpt.TableDescriptor.Columns[i].Width = wdth;
}
and Columns are binding fine.
but when group by with any column , there is a lot space on the left side of the grid before the first column. Plz find the attached document.
spacebeforefirstcolumn_5a335bd2.rar