first column is getting hided in grid

hi,

first column is getting hided,by using the following code.can u please provide the solutions for this.If i have more columns than a horizontal scroll has to appear to view the remaing columns for this i did the following code,any how scroller is coming,but the first column is getting hided…please help neede very urgent









New Document











































sb dark

gray

mt

xp

clear

modern

light















Filter

Column



012



Mask































//***********************************













mygrid.setInitWidths("*,150,150,150,150");
When * as size used, it means that column will be resized to prevent horizontal scroll, which may result in full column hiding , if there is no enough space.


You can fix problem in two ways
a) use setColumnMinWidth to define min width for the first column
or
b) use
mygrid.setInitWidths(“150,150,150,150,150”);
mygrid.enableAutoWidth(true);

In such case, instead of decreasing column size, total width of grid will be increased to show all data without scroll.