Re: Dynamic DataGrid

2013-01-14 Thread Alex Harui
On 1/14/13 6:11 PM, "Oleg Konovalov" wrote: > It sounds interesting. > > Not only we should not display columns without data by default, > but also user has an option to override that behavior ("force" some columns > from the list to appear even if they have no data). > so there is event for

Re: Dynamic DataGrid

2013-01-14 Thread Oleg Konovalov
It sounds interesting. Not only we should not display columns without data by default, but also user has an option to override that behavior ("force" some columns from the list to appear even if they have no data). so there is event for users to select/unselect some checkbox from list on the scree

Re: Dynamic DataGrid

2013-01-14 Thread Alex Harui
Remove all columns from the ADG and don't assign a dataprovder. Is that what you want it to look like? If so, define the columns somewhere else and only assign them if there is data. On 1/12/13 1:00 PM, "Oleg Konovalov" wrote: > Hi, > > I am trying to create dynamic DataGrid, > which shows c

RE: Dynamic DataGrid

2013-01-14 Thread Kessler CTR Mark J
Well a regular s:DataGrid you could loop through the rows checking each column you have then change the visibility of a column without any data. Number of rows: yourDataGrid.dataProviderLength List of columns: yourDataGrid.columns Number of columns: yourDataGrid.columnsLength Hide/Show column: