logo

New Response

« Return to the blog entry

You are replying to:

    • avatar
    • Rishi
    • Posted on Thu 14 Jan 2010 12:55 AM

    Hi Jake,

    Just to confirm , While adding columns there should be a check like this which will add the column and keep it hidden .

    if ( column.@viewByDefault=="false") {

    col.visible=false;

    }

    So code goes like ,

    for each (var column:XML in columns){

    var col:DataGridColumn = new DataGridColumn(column);

    col.headerText=column.@label;

    if ( column.@viewByDefault=="false") {

    col.visible=false;

    }

    cols.push(col);

    }

    dataGrid.columns = cols;

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment: