Get value from axboundfield

hi,

I have simple axform with axgroup. How can get value of DataField=“ItemBrand_RS” ?

c#

static AxBoundField GetField(DataControlFieldCollection fields, string name)
{
foreach (DataControlField field in fields)
{
// Is this the field being searched for?
AxBoundField boundField = field as AxBoundField;
if (boundField != null && String.Compare(boundField.DataField, name, true) == 0)
{
return boundField;
}

}
return null;
}

AxBoundField ItemBrandLists;
ItemBrandLists = GetField(AxGroup1.Fields, “ItemBrand_RS”);

asp

<dynamics:AxForm runat=“server” ID=“ListProd”
DataMember=“InventTable_Current” DataSourceID=“ADSItemBrandLookup” DefaultMode=“Edit”
DataKeyNames=“ItemBrand_RS”>
<dynamics:AxGroup ID=“AxGroup1” runat=“server”>

<dynamics:AxBoundField DataSet=“ARTAOLItemBrandLookup” DataSetView=“InventTable” DataField=“ItemBrand_RS” />

</dynamics:AxGroup>

</dynamics:AxForm>

Same question here, do you have a solution?

Many thanks…

Actually we can get the value from axboundfied in Dataset, just simple set the AXForm’s property “UpdateOnPostback” to true, then We can get the info that user input from the AX. Hope this can help if others meet the same problem.[:)]

Cheers,

updateonpostback true is updating only after clicking one more time in ax 2012, can anyone please help me it will update after clicking only.