![]() ![]() If you used a table with existing data for this tutorial, now you should see actual data within the Form Designer.Ĭreating the Event Handler to Make the Delete Button Visible When the User Selects an Item from the List In the LiveBindings Designer select ShopItem in the BindSourceDB1 component and drag ShopItem to Item.Text in ListView1.įollowing these steps connects the user interface of the app with data on a SQLite database.The following step displays the text of ShopItem in the TListView component. These steps are useful to link with the selected value if we are managing several fields of a database. Note: These last steps are not mandatory for this tutorial since there is only one field in BindSourceDB1. Click the Finish button to close the wizard.Select Link a control with a field binding task.Set the Command Text property to select ShopItem from Item.Īt this point, TBindSourceDB and TFDQuery components were added to your form.Select Create a data source binding task.Select View > LiveBindings Designer and the LiveBindings Designer opens.This tutorial uses the LiveBindings Wizard to add the LiveBindings components ( TBindSourceDB, TBindingsList), and the TFDQuery component. Set the Align property to Client, so that the ListView component uses the entire form. ![]() Drop a TListView component on the form and set the following properties in the Object Inspector:.Expand the TTextSettings node and set the HorzAlign property to Center. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |