On Thu, Apr 11, 2013 at 3:05 PM, Tom Chiverton <[email protected]> wrote:
> I do, but my dataProvider is totally dynamic. Looks like I'll have to > update the (computed) columns property when new data or columns arrive... The default looks at the object and makes a column per property on the first row of your IListCollection. Which is good and bad. It is good if you data is well structured. But if you have new properties beyond the first row then they aren't given columns. I've had many clients need the "super dynamic well laid out" datagrid and in the end I made it where the middle tier sends the data and some information about how the columns should be created. That way they could do things like dynamic coloring, aligning, human-readable labels, hidden columns, etc etc etc. You get the idea. Depending on how dynamic you need to be you may end up with a similar solution. Ultimately I created a VO that basically matched all the options for the datagrid column and the middle tier completely drove the datagrid. -- Jonathan Campos
