I have created a table in OpenEdge using ABL. I’m now trying to display the table in a UltraWinGrid. I have been following the information found here:
- http://devcenter.infragistics.com/Articles/ArticleTemplate.Aspx?ArticleID=1034
- http://devcenter.infragistics.com/Articles/ArticleTemplate.Aspx?ArticleID=1037
However these are written in c# and vb so the code is not prefect.
So I have a table called test and I’ve created a dataset like so
DEFINE DATASET WINTEST FOR TEST.
but i want to know how to link that dataset to the ultraGrid. the links about use the code
UltraGrid1.DataSource = DataSet
however this doenst work with ABL. Does anyone have any ideas how to link the table data with the UltraWinGrid?
I’ve not used the infragistics grids, but generally what you’d need to do to get a grid populated is –
. Create a ProBindingSource. Use the ProBindingSource designer to define / import the details of the tables and fields you will need.
. The ProBindingSource will become the datasource for your grid, so either set the datasource property in the designer or use the syntax you have above.
. You then need to get the ProBindingSource populated. To do this you would attach either a query, a buffer or a ProDataSet. You attach it using the :handle property of the ProBindingSource. I tend to use a query, so something like –