Script to Hide a DataGrid Column

Is there a way via scrip to hide a column in a DataGrid?   
I've seen similar questions posed but no answer directly to this.   

Example:  User enters a Sales Order line item.  Based on the Product Line of the Item, have certain columns show and hide others.

Thank you.

Parents
  • 0

    You absolutely can't do it based on line data.  (Mainly due to the question of what would happen if different lines are for different product lines?  There is no script event for clicking on a line.).

    The reason you don't see direct answers to such questions is because panel scripts are really hard to get working properly, and that goes double for grid display scripts.  Users can drag columns from the upper grid to the lower grid (and vice versa) making it practically impossible to construct reliable column scripts.

Reply
  • 0

    You absolutely can't do it based on line data.  (Mainly due to the question of what would happen if different lines are for different product lines?  There is no script event for clicking on a line.).

    The reason you don't see direct answers to such questions is because panel scripts are really hard to get working properly, and that goes double for grid display scripts.  Users can drag columns from the upper grid to the lower grid (and vice versa) making it practically impossible to construct reliable column scripts.

Children