[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: Convert some .Net code

  • Thread starter Thread starter Laura Stern
  • Start date Start date
Status
Not open for further replies.
L

Laura Stern

Guest
Well apparently your grid is bound to a Progress BindingSource. The underlying data source for a ProBindingSource is NOT a .NET DataTable. That is why you are getting the casting error. You need to explain what you are really trying to do. If you are just trying to list the columns of your table, you shouldn't be using the BindingSource to do it! The data is sitting right there in your ABL code - i.e,. it is the columns (i.e, fields) of the temp-table that the BindingSource is bound to (via a query or DataSet). If the code is in a place where it doesn't know what the underlying temp-table is - you could get the query handle from the BindingSource's Handle property (assuming you are bound to a query). Then you could get the associated buffer handle(s), etc. Alternatively, you could ask the grid itself for its list of columns. Depends on what you're trying to do.

Continue reading...
 
Status
Not open for further replies.
Back
Top