Home Forums WinForms controls Xceed Grid for WinForms Cell.Value = ??

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #15405 |

    Hello,

    My goal is to create another Grid within a cell utilizing a ADO DataColumn. I have been unsuccessful thus far!

    I can achieve the behaviour I want from defining a typeof to object. (see below)

    Xceed.Grid.Column columnEditors = new Column( “Editors”, typeof( object ) );

    clsFoo[] crap = new clsFoo[] {new clsFoo(), new clsFoo(), new clsFoo()};

    dataRow.Cells[ “Editors” ].Value = crap;

    However, I want to pass an ADO DataColumn to define the Xceed.column type. (see below)

    Xceed.Grid.Column columnEditors = new Column( “Editors”, typeof( System.Data.DataColumnCollection ) );

    dataRow.Cells[ “Editors” ].Value = dataSet.Tables[0].Columns;

    When I do the above, I get a big Red X through the cell.

    Any help would be greatly appreciated.

    Thanks

    Matt

    The Ado Column type enables me to create dynamic columns with unique column title/names instead of using the object type.

    Imported from legacy forums. Posted by toedwy (had 2017 views)

    User (Old forums)
    Member
    Post count: 23064

    Not sure this can work, but you can use an Xceed Grid as an editor of a column (basically a grid within a grid). And then, you will be able to set it as you want dynamically.

    Imported from legacy forums. Posted by André (had 2984 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.