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. Visual Basic
  4. Validation of individual cell in datagrid

Validation of individual cell in datagrid

Scheduled Pinned Locked Moved Visual Basic
tutorialquestion
4 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.
  • H Offline
    H Offline
    hisuman100
    wrote on last edited by
    #1

    How to make validation of individual cell in a datagrid?

    S 1 Reply Last reply
    0
    • H hisuman100

      How to make validation of individual cell in a datagrid?

      S Offline
      S Offline
      Stephen McGuire
      wrote on last edited by
      #2

      What do you want to validate? There is a certain amount of validation built into DataGrid controls. For example, grid columns bound to number type columns in the bound table will not allow letters (A-Z) etc. Validation is best handled at the table level when working with DataGrids. Add a handler for the table's OnRowChanging or OnColumnChanging events, check the 'proposed value' and set an error on the row if it does not pass your validation. The grid will respond to this. Steve

      H 1 Reply Last reply
      0
      • S Stephen McGuire

        What do you want to validate? There is a certain amount of validation built into DataGrid controls. For example, grid columns bound to number type columns in the bound table will not allow letters (A-Z) etc. Validation is best handled at the table level when working with DataGrids. Add a handler for the table's OnRowChanging or OnColumnChanging events, check the 'proposed value' and set an error on the row if it does not pass your validation. The grid will respond to this. Steve

        H Offline
        H Offline
        hisuman100
        wrote on last edited by
        #3

        Mr. Steve, Thank you,can you mention a web sites where I can get some sample code on it. With regards, Suman

        S 1 Reply Last reply
        0
        • H hisuman100

          Mr. Steve, Thank you,can you mention a web sites where I can get some sample code on it. With regards, Suman

          S Offline
          S Offline
          Stephen McGuire
          wrote on last edited by
          #4

          Are you using Visual Studio? The help explains this in detail. Steve

          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