10784 : Can you please tell me if there are events that I can listen to for when Grid Width changes and Grid gets sorted

Question

Hello. Can you please tell me if there are events that I can listen to for the following:

1) Grid Width changed
2) Grid sorted

Thanks!

Answer

When the grid width changes the Gantt.Grid.Resize event is fired. When a column is resized the OnColumnWidthChanged is fired

When the grid is sorted the OnUnBindedSort event will be called. If your Grid is databound the ApplySort or the IBindingList will be called and then it is up to your datasource to provide some event. GTP.NET does not currently fire any event before the ApplySort is called.

10867 : I want to set the minimum value for the column width, hows this possible ???

Question

I want to set the minimum value for the column width, hows this possible  ???

Answer

You can implement this event Gantt.Grid.OnColumnWidthChanged.

This event is fired continuously as the user drags the column divider. Check the column value and if you think it is out of bounds set it within bounds in this event.