Component name of db controls
When I select standard dbEdit and select DataField for that component, 'Edit component's name' dialogue appears and proposes name built with prefix and database field name. Would it be possible, to get that option for DevExpress cx DB components too ?
We don't care the Components classes, but use a published property named "DataField" to get the new name. So if DevExpress cx DB Components can't auto get the field name as component name, maybe the property name is not "DataField"?
Actually it is... have a look
The DataField property seems is from DataBinding Object, not directly from TcxDBDateEdit, which is only support by us.
We'll consider to add DataBinding's DataField Support.
BTW, do you use "cxDBDateEdit1.DataBinding.DataField" to refer the DataField Property in code? if so, I'll add this feature by this way and could you help to test this feature for us?
835 nightly-build is ready for test this feature. Please help to download and test it?
Sorry for delayed answer and thank you for your keenness to help...
Unhapilly it does not work. When I select data field in Object inspector, it does not change components name. When I click button by components name to invoke 'Edit component's name' dialog, I get error message like on picture bellow.
Answering your question, rarely, but I refer to DataField by code. I'm not sure what I should test, but I'll do my best to help you.
Could you click the details button and copy the stack trace and paste to here?
Now please download 838 nightly-build to test again? I've done some fix, but I don't have cx Components, so need your help to test it. Thanks.
Hello... I was tested it with version 839.
It works, when I open 'Edit component's name' dialog. When I just select FieldName it does not change components name - just does nothing.
Seems there's no notification to IDE when cx Components DataBinding.FeildName changed. I'll do some research again.
Powered by Discuz! Archiver 5.0.0
© 2001-2006 Comsenz Inc.
Now we can get the notification to DataBinding's DataField Changing, but we can't get the cxDBEdit or similar component instance from the DataLink instance.
Is there any property like DataBinding.Owner or DataBnding.Edit refer to cxDBEdit components?:L