CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2001
    Location
    Ukraine ,Kharkov
    Posts
    21

    validate binding data

    My TextBox binds to a field of a Dataset. Type of the field is double. When I enter a data in the TextBox ( not a double, for example string ) then my data is lost and TextBox sets a previous data. This event occurs till the validating event. How can I set off this automatic binding check. If I set CausesValidation to false then a validating event doesn’t occur, but I need this event. I think to rebind my textBox is not a very good idea. Does anybody khow how I can decide this problem . Maybe somebody will give me links to some articles.
    adja-badja

  2. #2
    Join Date
    Nov 2002
    Location
    Singapore
    Posts
    1,890
    you could use either
    MaskEdit

    or handle KeyPress, KeyDown, KeyUPp events where in you just accept numbers or doubles...

    Paresh

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured