Hello All,
I hope someone could reply to me on this issue. I am
using .NetBusinessConnector in an ASPX Page.
I have a function that will return an AxaptaRecord, but I have no
idea how I could bind this to a grid. I need to be able to set the
axaptarecord to a grid datasource. But, that's not the case. Does
that mean I'd need to loop through it and populate sometype of
collection then bind bind the collection to the grid.
Please Advise!!!!!!
Here is snippet of code:
public AxaptaRecord Retrieve(string aTableName)
{
_axaptaConn = new Axapta();
_axaptaConn.Logon(null, null, null, null);
AxaptaRecord retrieveRecordSet;
retrieveRecordSet = _axaptaConn.CreateAxaptaRecord
(aTableName);
string query = "select * from %1";
retrieveRecordSet.ExecuteStmt(query);
return retrieveRecordSet;
}