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 

UniversalEditBox and Strongly Typed DataSet

 
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: Tue Jul 12, 2005 8:23 am    Post subject: UniversalEditBox and Strongly Typed DataSet Reply with quote

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
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Tue Jul 12, 2005 11:45 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
flc.net



Joined: 21 Jun 2005
Posts: 89
Location: Switzerland

PostPosted: Wed Jul 13, 2005 6:46 am    Post subject: Reply with quote

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! Smile
thanks
Giuseppe
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Thu Jul 14, 2005 4:17 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
flc.net



Joined: 21 Jun 2005
Posts: 89
Location: Switzerland

PostPosted: Thu Jul 14, 2005 7:20 am    Post subject: Reply with quote

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
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Fri Jul 15, 2005 8:30 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
flc.net



Joined: 21 Jun 2005
Posts: 89
Location: Switzerland

PostPosted: Fri Jul 15, 2005 10:27 am    Post subject: Reply with quote

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 Wink

Thanks again
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