In my example that I am trying to complete I have two grids, and I drag items from grid "FROM" to grid "TO". (drag and drop)
Once I drag an item from grid "FROM" into "TO", I would like to "filter" out the item so it no longer shows in the grid "FROM".
I can't however just remove it from "FROM" data source, because the user can search again, and the items will show back in the DS.
Here is a example of the filter command that I currently call, after moving items
From the "FROM" grid to the "TO" grid
Any help would be greatly :-)
Thanks!
Once I drag an item from grid "FROM" into "TO", I would like to "filter" out the item so it no longer shows in the grid "FROM".
I can't however just remove it from "FROM" data source, because the user can search again, and the items will show back in the DS.
Here is a example of the filter command that I currently call, after moving items
From the "FROM" grid to the "TO" grid
| // Create a list of items to filter by (for the the main search grid) |
| string strItemsToFilter = ""; |
| foreach (ITEM item in GridToDS) |
| { |
| strItemsToFilter += "([UniqueObjectID] <> '" + item.UniqueObjectID + "') AND "; |
| } |
| // Remove " AND " from the filtered items list |
| if (strItemsToFilter.Length > 0) |
| strItemsToFilter = strItemsToFilter.Substring(0, strItemsToFilter.Length - 5); |
| grdFROM.Columns.FindByUniqueName("UniqueObjectID").CurrentFilterValue = strItemsToFilter; |
| grdFROM.Rebind(); |
Any help would be greatly :-)
Thanks!