web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Add new column to AxGridView

(0) ShareShare
ReportReport
Posted on by 447

Hello,

I want to add a new field column with a inventory dimension (configId) to an AxGridView, but the problem is that all others columns are from a different DataSetView.

The EP page is EPSalesTableList.aspx and when I open a sales order it load the EPSalesTableInfo webcontrol.

<dynamics:AxGridView ID="gridEPSalesTableInfo1" runat="server" DataKeyNames="RecId,InventDim!inventDimId"
            DataMember="SalesLine" DataSourceID="dsEPSalesTableInfo" AllowPaging="true" ShowFilter="false">
            <Columns>
                <dynamics:AxHyperLinkBoundField DataSet="EPSalesTableInfo" DataSetView="SalesLine" DataField="ItemId" SortExpression="ItemId" MenuItem="EPInventTableInfo" />
<dynamics:AxReferenceBoundField DataSet="EPSalesTableInfo" DataSetView="SalesLine" DataField="SalesCategory" SortExpression="SalesCategory"/>               
                <dynamics:AxBoundFieldGroup DataSet="EPSalesTableInfo" DataSetView="SalesLine" FieldGroup="InventDim!InventoryDimensions" />
..........................................
                <dynamics:AxBoundField DataSet="EPSalesTableInfo" DataSetView="SalesLine" DataField="LineAmount" SortExpression="LineAmount" />
            </Columns>
</dynamics:AxGridView>

The AxGridView DataMember is SalesLine, but the column that I want to add is from the same DataSet but different DataMember (InventDim).

If I put DataSetView="InventDim" en the column, It says that is not a member of that DataMember...

¿Any help please?

Thanks in advance.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    vanels Profile Picture
    447 on at

    Hi,

    I've found a solution.

    I'm sure that there is a way to access to other DataMember so InventDim is in the DataSet for something...

    Also, the line

    <dynamics:AxBoundFieldGroup DataSet="EPSalesTableInfo" DataSetView="SalesLine" FieldGroup="InventDim!InventoryDimensions" />

    seems to have relation with this.

    Nevertheless, I've used this link to solve my issue:

    farooqkarim.wordpress.com/.../ax-2012-enterprise-portal-double-asterisk-in-axboundfield-property-datafeild-value

    Create a display method in the DataTable (not DataSet) and call it with 2 asterisks at the end of the DataField name:

    DataSetView="SalesLine" DataField="myDisplayMethod**"

    If someone knows to solve it with first method, tell us ;)

    Regards!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 16

#2
GiacomoRovai Profile Picture

GiacomoRovai 4

#3
Douglas Noel Profile Picture

Douglas Noel 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans