DbDataTable() function - Is there DbCursorFromDataTable() function???

This forum is meant for questions and discussions about the X# language and tools
Post Reply
Anonymous

DbDataTable() function - Is there DbCursorFromDataTable() function???

Post by Anonymous »

Robert - I see in the What’s New file version 2.4 that there’s a new function called DbDataTable(), so I want to ask if there is also a function that will create a data table from a local cursor?
User avatar
robert
Posts: 4292
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

DbDataTable() function - Is there DbCursorFromDataTable() function???

Post by robert »

Matt,
Sure we can add that. But why would you need that ?
To show data on a .Net control (DataGridview for example) you need a bindable .Net collection and not a cursor.
That is why we added DbDataTable() and DbDataSource().

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
FoxProMatt

DbDataTable() function - Is there DbCursorFromDataTable() function???

Post by FoxProMatt »

Okay, you’re teaching me here... I wasn’t aware of BindingList in .Net, so after some reading, I see what you are saying.

I’ll keep reading and experimenting.

I’m especially curious to see how X# keeps the Cursor updated from changes in the BindingList as stated in the What’s New file.
Updates to properties in the bindinglist will be directly written to the attached workarea.
Keeping data sets synchronized is hard.. what if I delete a row from the WorkArea after the BindingList is created? Or add a new row to the WorkArea?
Post Reply