Solved

How to find the actual class of DevExpress Quantum Grid 4.5.1 cxEditors? Inheritance Problems.

Posted on 2004-03-30
10
1,183 Views
Last Modified: 2007-12-19
Hi, Buddies,

Anyony use DevExpress QG? I am very confused about the inheritance of cxEditors.

Now I have several cxEditors on my form, including cxTextEdit, cxComboEdit
etc, I want to find out what kind of editor the ActiveControl on my form is at
run-time.

I used (ActiveControl is TcxTextEdit) and (ActiveControl is TcxComboEdit),
but it was always "False".

I find all the class name of these controls are "TcxCustomInnerTextEdit" by
using ActiveControl.ClassName, and anyone could plz tell me how to find out
which is which?

Thanks a lot,

Edward Wang
0
Comment
Question by:wyuanzheng
10 Comments
 
LVL 27

Expert Comment

by:kretzschmar
ID: 10721873
well,

doesn't have devexpress-quantumgrid on hand yet,
but if i remember correct, then there is a property InplaceEditor
on the column, where could be decided which class of InplaceEditor
is used.

but this is just a guess, not sure

meikl ;-)
0
 

Author Comment

by:wyuanzheng
ID: 10729269
Yes, there is absolutely a property named InplaceEditor on a column in the Grid; while, I want to know is not the column, but the editor controls on the form.

Edward
0
 
LVL 9

Expert Comment

by:auke_t
ID: 10729829
Why don't you just post your question on the DevExpress forum, they're well known for their excellent and fast support!

Good luck
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 5

Accepted Solution

by:
snehanshu earned 125 total points
ID: 10755162
wyuanzheng,

You can use the parent property of the activecontrol (TcxCustomInnerTextEdit) to determine whether it is TcxTextEdit or somethin else.
e.g.


procedure TForm1.FormClick(Sender: TObject);
begin
  If (ActiveControl is TcxCustomInnerTextEdit) then
  Begin
    If (TcxCustomInnerTextEdit(ActiveControl).Parent is TcxTextEdit) OR
      (TcxCustomInnerTextEdit(ActiveControl).Parent is TcxComboBox) Then
      ShowMessage(TcxCustomInnerTextEdit(ActiveControl).Parent.Name);

  End;
end;


HTH,
...Shu
0
 
LVL 5

Expert Comment

by:snehanshu
ID: 13189932
I feel that my comment could have helped.
Cheers!
...Shu
0
 
LVL 5

Expert Comment

by:snehanshu
ID: 13242907
??
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This video discusses moving either the default database or any database to a new volume.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now