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. Help required in grid conditon

Help required in grid conditon

Scheduled Pinned Locked Moved Visual Basic
helptutorialhtmlcss
1 Posts 1 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.
  • S Offline
    S Offline
    siddisagar
    wrote on last edited by
    #1

    Hi, Please help me in checking the condition.I am displaying information in a html table. I have two grids in asp and On click of first grid items it should be added to the second grid. Always items with same satus we should add. Example :I have 5 records in First grid. No Status == ====== 1 closed 2 Open 3 Open 4 Open 5 Open if I select different status records and click add button on the page it should throw an error message, If I select same status then it shouldn't through an error message. I have code like below. Here rs means the number of records in the second grid. If rs.RecordCount > 0 Then rs.MoveFirst If trim(rs.Fields.Item("Status").Value) <> trim(grid.Columns.Item("Status").Value) MsgBox "Items should be with same status." Exit Function End If End If Please let me know how to how to validate the above condition.

    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