Bug 914362 - fix long device name problem

- add middle ellipsis symbols for this case
Bug 929572 - If the grid isn't valid, report a build error.