View previous topic :: View next topic |
Author |
Message |
flc.net
Joined: 21 Jun 2005 Posts: 89 Location: Switzerland
|
Posted: Wed Aug 31, 2005 1:00 pm Post subject: CellEditor.InitializeControl |
|
|
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 |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Wed Aug 31, 2005 11:58 pm Post subject: |
|
|
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 |
|
|
flc.net
Joined: 21 Jun 2005 Posts: 89 Location: Switzerland
|
Posted: Thu Sep 01, 2005 8:01 am Post subject: |
|
|
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 |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Fri Sep 02, 2005 2:52 am Post subject: |
|
|
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 |
|
|
flc.net
Joined: 21 Jun 2005 Posts: 89 Location: Switzerland
|
Posted: Fri Sep 02, 2005 7:09 am Post subject: |
|
|
thank you for your help
giuseppe |
|
Back to top |
|
|
|