hello, I use the grid. if the window’s width is small, the grid will appear ScrollBar. if the window’s width is big, the grid won’t appear ScrollBar. If it appear ScrollBar, I want the first two columns is fixed. So I use the method “mygrid.splitAt(2);” If it hasn’t ScrollBar, I needn’t use the method. how can I do it ? if I use the method , when the width is bigger, the segmentation effect still exist.
You may try to call getColWidth() method to get the with of the column. This way you can get the width of your grid and compare it with the width of the grid’s container.
you don’t understand me. I mean that when I drag the window, if the window’s width is small, I can use the splitAt. then the window’s width is big, how can I cancel the splitAt. I use the splitAt(“0”) doesn’t work.
Unfortunately it’s not available to disable split.
The only way is to reinit your grid.