Documents
NextGrid & NextDBGrid
- Html Column Tutorial
- Upgrade existing projects for loading changes
- Edit events in NextGrid
- NextGrid Vista Style
- NextGrid How To
- Integrating Inplace Editors
- NextGrid Slide Style Tutorial
- InputLine Tutorial
- FieldChooser Tutorial
- Using Editors in runtime
- Grid Report Tutorial
NextGrid
- TreeColumn Tutorial
- NextGrid Quick Start
- Custom Draw in NextGrid
- Export to XML from NextGrid
- Optimize NextGrid
- NextGrid Custom Sorting
- VirtualColumn Tutorial
- Graphic Column Tutorial
NextDBGrid
- NextDBGrid Quick Start
- NextDBGrid Events
- NextDBGrid How To
- Sorting records in NextDBGrid
- LookupColumn Tutorial
NextInspector
- NextInspector Advanced tutorial
- ToolbarItem tutorial
- NextDBInspector Tutorial
- NextInspector Item Types
- Map VCL property to item
- NextInspector Quick Start
NextSheet
NextCollection
- NxAlertWindow Tutorial
- NxInfoPanel Tutorial
- Vista Styled Panels
- NxPathControl and NxNotebook tutorial
- NxPathControl Quick Start
- NxFlipPanel and NxHeaderPanel Quick Start
- NxOutlookBar Tutorial
- NxPageControl and NxNotebook Quick Start
- NxButton Tutorial
Misc
- Component Names Change
- NxComboBox styles
- Numeric FormatMask
- NxVirtualDataSet tutorial
- DateTime FormatMask
- NxPreview Quick Start
- 32bit Bitmaps Tutorial
- Quick update
- Enable typing unicode characters in InplaceEditors
- Using NxColorScheme
- NxProgress Tutorial
- NxAutoCompletion Tutorial
Labs
NextGrid .NET
NextDBInspector Tutorial
Related Articles:
Info
- Skill:
- Version: 1.0.0
- Author: Bojan Nikolic
- Created: 2008-07-26
- Updated: 2008-07-26
1. Introducing
NextDBInspector is version of NextInspector extended with DB support. Work with NextDBInspector is completely same as with NextInspector except:
1. New property DataSource
2. FieldName property for each Item
Work with NextDBInspector is very similar to any DB component. You need to set DataSource property to some TDataSource component on Form. As usual, DataSource need to be connected to some DataSet (TTable, TQuery, TADOTable...)
2. Set FieldName property for Item
After NextDBInspector is connected to DataSource, we can start with adding and customizing our Items.
In NextDBInspector each Item have FieldName property. This property point to TField inside TDataSet with this name. After DataSet is activated, Item will display content of this Field.
As can be seen in Image, some Items may have empty FieldName property and this Items will act as normal Items in normal NextInspector (you can set MapProperty, set Value property by yourself...).
3. Conclusion
Work with DB-Aware version of NextInspector is same as work in "normal" version of this component. You can chose Items you want to connect with DataBase and which Items not. TNextDBInspector is descendant of TNextInspector and any new feature in TNextInspector will be automaticaly added to DB version of component.
Comments
2009-03-12 00:54:23
In my NextDBInspector I have item :
NxDBComboBoxItem
with property Lines contains 2 strings
Male
Female
Style csDropDownList
When I select Male, I want value 0 to be saved in my table
When I select Female, I want value 1 to be saved in my table
how can I do that...
thanks
NxDBComboBoxItem
with property Lines contains 2 strings
Male
Female
Style csDropDownList
When I select Male, I want value 0 to be saved in my table
When I select Female, I want value 1 to be saved in my table
how can I do that...
thanks