View previous topic :: View next topic |
Author |
Message |
flc.net
Joined: 21 Jun 2005 Posts: 89 Location: Switzerland
|
Posted: Tue Jul 12, 2005 8:23 am Post subject: UniversalEditBox and Strongly Typed DataSet |
|
|
Hello Support
I have a Strongy Typed DataSet bound to a Virtual Tree. Some (String)Cells are editable through a UniversalEditBox.
If the Cell contains null, it's not possible to type Text inside the UniversalEditBox (like http://www.infralution.com/phpBB2/viewtopic.php?t=47).
I suppose that the UniversalEditBox can't be associated to a TypeConverter beacause the Data inside the cell is null.
Why can't the UniversalEditBox take the right DataType-Information from the Typed Row?
Thanks and Best Regards
Giuseppe |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Tue Jul 12, 2005 11:45 pm Post subject: |
|
|
The answer is it probably should. ObjectCellBindings do pass the type information from properties to the editor (via CellData) - however the DataRowCellBindings currently omit this - we will fix this in the next scheduled minor release (1 to 2 weeks away).
In the meantime if you desperately need this you could override the GetCellData method/event and set the CellData.TypeConverter and CellData.TypeEditor properties for the specific columns that are a problem. _________________ Infralution Support |
|
Back to top |
|
|
flc.net
Joined: 21 Jun 2005 Posts: 89 Location: Switzerland
|
Posted: Wed Jul 13, 2005 6:46 am Post subject: |
|
|
Infralution wrote: | The answer is it probably should. ObjectCellBindings do pass the type information from properties to the editor (via CellData) - however the DataRowCellBindings currently omit this - we will fix this in the next scheduled minor release (1 to 2 weeks away). |
great!
thanks
Giuseppe |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Thu Jul 14, 2005 4:17 am Post subject: |
|
|
Another thought. What is the data type in the column you want to edit?
If the column you are having a problem with is a string type then you probably should simply change to use a simple TextBox as an editor for this column. You don't really need the versatility of the UniversalEditBox for strings and using a simple text box has no issues with null fields. _________________ Infralution Support |
|
Back to top |
|
|
flc.net
Joined: 21 Jun 2005 Posts: 89 Location: Switzerland
|
Posted: Thu Jul 14, 2005 7:20 am Post subject: |
|
|
Infralution wrote: | Another thought. What is the data type in the column you want to edit?
If the column you are having a problem with is a string type then you probably should simply change to use a simple TextBox as an editor for this column. You don't really need the versatility of the UniversalEditBox for strings and using a simple text box has no issues with null fields. |
I want implement a Generic behaviour (for this purpose, the UniversalEditbox is very great) . The string type was just an example.
thanks again
Giuseppe |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Fri Jul 15, 2005 8:30 am Post subject: |
|
|
Version 1.6.1 (just released) will now pick up the TypeConverter from the table column DataType allowing you to use an UniversalEditBox as an editor even the column contains DBNulls. _________________ Infralution Support |
|
Back to top |
|
|
flc.net
Joined: 21 Jun 2005 Posts: 89 Location: Switzerland
|
Posted: Fri Jul 15, 2005 10:27 am Post subject: |
|
|
Infralution wrote: | Version 1.6.1 (just released) will now pick up the TypeConverter from the table column DataType allowing you to use an UniversalEditBox as an editor even the column contains DBNulls. |
I Love You
Thanks again
Giuseppe |
|
Back to top |
|
|
|