Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. validation in datagridview

validation in datagridview

Scheduled Pinned Locked Moved C#
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    varsh12
    wrote on last edited by
    #1

    HI !!! using windows application, i want to validate in datagridview two columns. In datagridview, one column is Name and another is age. my requirement is the both columns not Left blank and enter only character in name column and number only Age column thanx

    OriginalGriffO H 2 Replies Last reply
    0
    • V varsh12

      HI !!! using windows application, i want to validate in datagridview two columns. In datagridview, one column is Name and another is age. my requirement is the both columns not Left blank and enter only character in name column and number only Age column thanx

      OriginalGriffO Offline
      OriginalGriffO Offline
      OriginalGriff
      wrote on last edited by
      #2

      Are you asking for permission? If so, then please go ahead and do it - I have no objections whatsoever. If not, then perhaps you should clarify what you do want.

      Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

      1 Reply Last reply
      0
      • V varsh12

        HI !!! using windows application, i want to validate in datagridview two columns. In datagridview, one column is Name and another is age. my requirement is the both columns not Left blank and enter only character in name column and number only Age column thanx

        H Offline
        H Offline
        Henry Minute
        wrote on last edited by
        #3

        Cells in DataGridViews have a Validating event. Look here[^] for how to use it.

        Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups