How can i fix the column width at code time so that it cannot be editable at runtime.
language-C# Windows application
version-.net 1.1 or 2003

Set property allowUserToresizeColumns to false.
Click Columns > Collection to open column editor and set you column width values