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. Errorprovider within a datatable column

Errorprovider within a datatable column

Scheduled Pinned Locked Moved Visual Basic
question
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.
  • P Offline
    P Offline
    popalzai
    wrote on last edited by
    #1

    Hi! i want to show the errorprovider icon within a column of a datatable. and this datatable is bound to datagrid. is there any solution for this?

    S 1 Reply Last reply
    0
    • P popalzai

      Hi! i want to show the errorprovider icon within a column of a datatable. and this datatable is bound to datagrid. is there any solution for this?

      S Offline
      S Offline
      Simon_Whale
      wrote on last edited by
      #2

      Are you to do anything to this column? click it? show under certain conditions? otherwise have a look at this should show you what sort of columns you can have in a grid Datagridview Column Types. Bit more info on what you are trying to do will allow a better solution to be given

      P 1 Reply Last reply
      0
      • S Simon_Whale

        Are you to do anything to this column? click it? show under certain conditions? otherwise have a look at this should show you what sort of columns you can have in a grid Datagridview Column Types. Bit more info on what you are trying to do will allow a better solution to be given

        P Offline
        P Offline
        popalzai
        wrote on last edited by
        #3

        Hi! thanks for ur reply! yes i have some business logic on this column. this column can accept only three values. 1 - store 2 - development agent 3 - previous owner anything else user trying to do system shud show errorprovider on this column with some altert message as well.

        S 1 Reply Last reply
        0
        • P popalzai

          Hi! thanks for ur reply! yes i have some business logic on this column. this column can accept only three values. 1 - store 2 - development agent 3 - previous owner anything else user trying to do system shud show errorprovider on this column with some altert message as well.

          S Offline
          S Offline
          Simon_Whale
          wrote on last edited by
          #4

          If user enters these values then you will need to use the DataGridView1_CellValueChanged event and then evaulate what the user has entered. Private Sub DataGridView1_CellContentClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellContentClick If e.ColumnIndex = 2 Then 'assuming this is your column number for store, development agent, previous owner 'then show your error message if not enter what is required End If End Sub if the values are coming from the database only then you need to re-look at your database query. Simon

          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