how to validate datagridview cells

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Parameswar Nayak
    New Member
    • Jul 2010
    • 7

    how to validate datagridview cells

    Hi every one
    I am using datagridview in a win application.I need to validate the different cells according to condition like
    one cell for entering only numeric value.
    Can some one help me?
  • mzmishra
    Recognized Expert Contributor
    • Aug 2007
    • 390

    #2
    I know this is a old post.if you are allowing user to enter data in some cells in grid then you can use testbox and add some client side event to validate the data.
    if you want to display the data in particular form
    e.g your are getting data as decimal but you want only integer part in cell then you can user rowdatabound event of the grid and manipulate the data.

    Comment

    • Parameswar Nayak
      New Member
      • Jul 2010
      • 7

      #3
      I think you are thinking that its a web application, but its a win application & i am using a datagridview.

      Comment

      • mzmishra
        Recognized Expert Contributor
        • Aug 2007
        • 390

        #4
        Try datagridview.ce llformatting event

        Comment

        Working...