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. Validating a textbox within the gridview

Validating a textbox within the gridview

Scheduled Pinned Locked Moved C#
help
2 Posts 2 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.
  • A Offline
    A Offline
    Anjani Poornima
    wrote on last edited by
    #1

    Hello, In my application i am having a datagridview. And in that datagridview one of the column is textbox. I like to validate the textbox so that only numbers to be entered into the textbox. And on clicking the button a dialog box with error messesge to be displayed if any other is entered into the textbox beyond the number. plz, help me in doing this...... Thanks in advance :)

    H 1 Reply Last reply
    0
    • A Anjani Poornima

      Hello, In my application i am having a datagridview. And in that datagridview one of the column is textbox. I like to validate the textbox so that only numbers to be entered into the textbox. And on clicking the button a dialog box with error messesge to be displayed if any other is entered into the textbox beyond the number. plz, help me in doing this...... Thanks in advance :)

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

      Handle the CellValidating or CellValidated events of the DataGridView. Look them up on MSDN for examples.

      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