Below is a capture of a form in development. I need some help regarding how to handle allowing the user to add or delete rows or bands. The requirement is that the user be able to add, insert, or delete any of the grid rows or band, anywhere in the hierarchy.
For example, the user should be able to insert an Operation band between PRE-MIX #1 and PRE-MIX #2.
Any suggestions as to how to handle through UI are appreciated. The two thoughts that are currently being worked on are a context menu and a context group associated with the ribbon (not visible in the attached image).
Thanks.
Hi,
UltraWinGrid has built-in functionality for adding and deleting rows.
See the AllowAddNew and AllowDelete properties on the Override object.
There is no functionality in the grid to allow the user to add or remove bands, though. So you would have to provide the user with a context menu or button or some other UI for this and then modify the grid's DataSource accordingly.
Thanks. I enabled both on the "phases" grid above, but I'm having a problem with the obvious... How do I select a row to delete? I assume to delete a row, the row needs to be selected and the Delete key prressed. Believe it or not, I did check documentation and a bit of web searching.
It's not a dumb question at all. You can turn on the RowSelectors (using the RowSelectors property on the Override).
You can also set CellClickAction to RowSelect. This will make it so the row is selected when the user clicks on any cell.
Disregard the dumb question above. I found the RowSelector functionality I was looking for.