MikeR
Joined: 25 Jun 2016 Posts: 29
|
Posted: Mon Jan 15, 2018 9:02 pm Post subject: Sample code for non-grid operations |
|
|
Is there a sample project anywhere that illustrates how to tie a group of individual text boxes laid out on a form to a virtual record / recordset? I'd like to see that.
Not every application is amenable to a grid control.
Thanks.
Never mind, found one way to do it. I have a history with Embarcadero Delphi, I just can't believe how much code it takes to do this:
textBox1.DataBindings.Add("Text", yourVirtualRecord, "your property name", false, DataSourceUpdateMode.OnPropertyChanged, "");
This gives live connection that auto updates. yourVirtualRecord must be part of a Virtual Recordset that has successfully loaded from your database connection. _________________ Thanks,
-- Mike R. |
|