CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2010
    Posts
    45

    Updating a datatable and also validating a check box

    I have a datagridview that has a checkbox. That checkbox will designate if a day is a "Holiday" or not. When then user clicks on my save event, I want my sub to check to see if that box is checked and appending the data to a table in my database. I've never done this before and would appreciate any help that I can get. Thank you.

  2. #2
    Join Date
    Feb 2005
    Location
    Denmark
    Posts
    742

    Re: Updating a datatable and also validating a check box

    Divide the task into subtasks and solve them one at the time.

    For example:
    First - make sure you can postback when your checkbox is clicked (there's a property you can set on checkbox'es that'll post back, which you can capture)
    Secondly - make the check whether you should change information or not.
    Lastly - solve the issue of saving the information (depends much on how you access the database, how this will be done).

    Or something similar to that.

    When reducing the larger task to these smaller, more simple, tasks - you should be able to tackle them, make it easier to search for information - and if running into problems - you can ask more specific questions (with code) instead of "how to do X" which would really require somebody to solve it all for you to be able to help you much

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