Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CellEditor.InitializeControl

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support
View previous topic :: View next topic  
Author Message
flc.net



Joined: 21 Jun 2005
Posts: 89
Location: Switzerland

PostPosted: Wed Aug 31, 2005 1:00 pm    Post subject: CellEditor.InitializeControl Reply with quote

Hello Support

I use the CellEditor.InitializeControl to init a UniversalEditBox (that acts as a ComboBox).

What I need to know when the Event fires, is the actual Row and Column. I need this Information to fill dynamically the UniversalEditBox.

I can get the actual Row with _tree.SelectedRow, but I don't have any Idea how to get the Column.

Is it possible to pass the Row/Column with the EventArgs of the Event in a next Release?

Thanks Giuseppe
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Wed Aug 31, 2005 11:58 pm    Post subject: Reply with quote

I don't understand why you need to manually initialize the UniversalEditBox. The value should be set automatically to the CellData.Value and the TypeDescriptor/TypeEditor are also set automatically to the value passed in CellData. What are you trying to initialize?
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
flc.net



Joined: 21 Jun 2005
Posts: 89
Location: Switzerland

PostPosted: Thu Sep 01, 2005 8:01 am    Post subject: Reply with quote

Hello Support

I send you a Sample app, that shows my needs:

On the Car Row, you can set an Contact Person. I use the (great) Lookup Functionality of Virtual Tree.

On the Company Row you can also select a Contact Person. If you select a Contact Person, then the Contact Persons of all the Child Cars will be overridden with this value. The Contact column is not bound to the Company DataTable.

In my real app, i have some dynamic column that shows some divisions and for each division i have a set of possible Partners that can be selected.

So it's important for me to know the Column to inizalize the UniversalEditBox correctly.

I could make a dummy DataColumn on the Company-Table and then use the Lookup Functionality, but would perfer not too (if possible).

Thanks and best Regards
Giuseppe
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Fri Sep 02, 2005 2:52 am    Post subject: Reply with quote

Thanks for the sample project. You could achieve your goal by setting the CellData.TypeDescriptor and CellData.TypeEditor properties in the GetCellData event. I've modified your sample project to do this and emailed it back to you.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
flc.net



Joined: 21 Jun 2005
Posts: 89
Location: Switzerland

PostPosted: Fri Sep 02, 2005 7:09 am    Post subject: Reply with quote

thank you for your help Very Happy

giuseppe
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group