Hi Saurabh,
I am afraid that I am not able to reproduce the issue, that you have mentioned here. Applying Custom CSS doesn’t affect of setting column width. Please refer the below sample where I have followed the below things:
1. Created Grid, and applied custom CSS.
2. Creating a new column dynamically.
3. Setting width for the dynamically created column.
4. The width is applied to the column properly.
Please refer the below code snippet which illustrates this:
protected void Button1_Click(object sender, EventArgs e)
{
this.GridGroupingControl1.TableDescriptor.Columns.Add("NewColumn");
GridColumnDescriptor gcd = this.GridGroupingControl1.TableDescriptor.GetColumnDescriptor("NewColumn");
gcd.Width = 300;
}
Please refer the sample from the below link, which illustrates the above:
http://www.syncfusion.com/support/user/uploads/Sample_f8581c1.zipPlease let me know if you have any other concerns.
Regards,
Raji