Resources for IT Professionals >
Dynamics Forums
>
CRM Online
>
how to hide or show a column in axgridview?
how to hide or show a column in axgridview?
- Hello,
sorry for the wrong (maybe) forum section but i could not find a more appropriate one.
I am building an axgridview retrieving data from an AX dataset.
I would like to add a control (e.g.: checkbox, button, toolbar menu, whatever) to let the client user to hide or show one or more columns.
Here is the code of the axgridview.
I was thinking about setting the property of the field visible="false" but I do not know how to realize it. Let's try to hide or show InventSizeId for instance.<dynamics:AxGridView ID="AxGridView1" runat="server" DataMember="View2" DataSourceID="AxDataSource1" onselectedindexchanged="AxGridView1_SelectedIndexChanged"> <Columns> <dynamics:AxBoundField DataField="ItemId" DataSet="DataSet1" DataSetView="View2" SortExpression="ItemId"> </dynamics:AxBoundField> <dynamics:AxBoundField DataField="ItemName" DataSet="DataSet1" DataSetView="View2" SortExpression="ItemName"> </dynamics:AxBoundField> <dynamics:AxBoundField DataField="InventSizeId" DataSet="DataSet1" DataSetView="View2" SortExpression="InventSizeId"> </dynamics:AxBoundField> <dynamics:AxBoundField DataField="InventColorId" DataSet="DataSet1" DataSetView="View2" SortExpression="InventColorId"> </dynamics:AxBoundField> <dynamics:AxBoundField DataField="SumOfPhysicalInvent" DataSet="DataSet1" DataSetView="View2" SortExpression="SumOfPhysicalInvent"> </dynamics:AxBoundField> </Columns> </dynamics:AxGridView>
Thank you very much in advance.
Answers
- Unfortunately, we won't be able to give you good answers on the CRM forums. Looks like the AX forums are located here: https://community.dynamics.com/forums/33.aspx.
Hope that helps!
--Matt- Marked As Answer byCRM OnlineMSFT, OwnerFriday, October 23, 2009 7:56 PM
All Replies
- Unfortunately, we won't be able to give you good answers on the CRM forums. Looks like the AX forums are located here: https://community.dynamics.com/forums/33.aspx.
Hope that helps!
--Matt- Marked As Answer byCRM OnlineMSFT, OwnerFriday, October 23, 2009 7:56 PM
- Ok thank you and sorry for posting in the wrong forum.

