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