Hi, my grid has a CommandName="DeleteSelected".
On RadGrid1_ItemCommand event
it works fine, delete the selected rows.
Now my goal is to hide/show things depending on how may row the grid has (if 0.. else...)
I use ths: RadGrid1.MasterTableView.Items.Count
but that one returns the number of rows before the delete task.
I tried to put it on RadGrid1_ItemDeleted event but still not getting the new number of rows.
What event? What way?
Thanks
On RadGrid1_ItemCommand event
| If (e.CommandName = "DeleteSelected") Then |
| If Not (RadGrid1.SelectedIndexes.Count = 0) Then |
| Dim myItem As GridDataItem |
| For Each myItem In RadGrid1.SelectedItems |
| e.Item.OwnerTableView.PerformDelete(myItem, True) |
| Next |
| e.Item.OwnerTableView.Rebind() |
| End If |
| End If |
it works fine, delete the selected rows.
Now my goal is to hide/show things depending on how may row the grid has (if 0.. else...)
I use ths: RadGrid1.MasterTableView.Items.Count
but that one returns the number of rows before the delete task.
I tried to put it on RadGrid1_ItemDeleted event but still not getting the new number of rows.
What event? What way?
Thanks