The command bar has an insert button and a refresh button, it all seems to work ok. The problem is when there are no rows to display in the grid and I want to add one, the commandbar isnt visible so I cant add any rows !
Is there a way around this problem ? Can I have the command bar visible even when there are no rows to display in the grid ?
7 Answers, 1 is accepted
I tried this at my end and the CommandItem always display regardless of records present or not in the grid. But the whole grid can vanish if at all the DataSource is set as:
If that is the case, then you can add the following code instead which will render the CommandItemDisplay.
The datasource is a custom object (collection)
Ive used the NeedDatasource event instead of my own method for retriving data.
heres the grid code
heres how the data is retrieved
For the selected artist, no secondary categories have been entered so the grid is empty, but no commandbar !