Results 1 to 2 of 2

Thread: Help in fixing the error "Input string is not in correct format"

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2006
    Posts
    266

    Help in fixing the error "Input string is not in correct format"

    I have a true DB grid bounded . Whenevr I paste some string value in a field that is bind with some numeric field an error message appears "Input string is of incorrect format".

    I dnt want this message to appear but i want to handle it by myself means i wanna display me own message.

    plz any one can help me ...... Thnx in advance

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Help in fixing the error "Input string is not in correct format"

    In the DataGridView you handle the DataError event to provide your own error message. I would assume that most other grids provide a similar event for the same purpose. I suggest you check your documentation for the same.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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