EmptyDatagrid control
Matt Hawley has been nice (and surely busy !) to send me his nice control EmptyDatagrid. I tested it and so far it works well and solve the problem.
Few things however to improve (If I can dare to request something because Matt's job is really pro and has not the 'ugly' sound coming from some commercial companies):
- OK first point Intellisense get lost and obviously it expect Datagrid and not EmptyDatagrid.
But of course, everything working with Datagrid works well with this control.
- Other fun thing, and it's really cool, because Matt defined an EmptyDataTemplate, you can indeed define very easily a common ASCX template common to all your project.
This is surely going to open the door to some interesting developments. I imagine a scenario where I want to display a disabled image of my grid.
So then by using a control I can send to it the number of columns I require, and hop I will get the empty datagrid matching my number of columns.
Sounds complicated ? OK I will try something and post the result in my blog.
Again Matt thanks for the good job. I like also the way that you give the control and honestly selling the source for a small amount.
However, for this one can you make an exception, because some guys from the .Net 2 team maybe would like to take some notes ;-))