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.