Home Forums WinForms controls Xceed Grid for WinForms Howto expand detailGrid row’s that belong to a DataRow?

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

    I have one gridControl with one DetailGrid.

    Each Datarow(on the gridControl) has a number of detailRow’s.

    How do I expand the detailRows that belong to one specific DataRow?

    This code do not work:
    this.gridControl1.DetailGridTemplates[0].Collapsed = true;
    because then all the rows of the DetailGrid are expaned.

    I only want to expand the detailRow’s that belong to one specific datarow.

    this.gridControl1.DataRows[0] ??

    Any help?

    Imported from legacy forums. Posted by C# (had 4083 views)

    Xceed Support
    Member
    Post count: 5658

    Hi C#,

    If you want to expand the detail grid of a specific DataRow, you can do the following:

    this.gridControl1.DataRows[0].DetailGrids[0].Expand();

    I hope this is the information you were looking for!

    Imported from legacy forums. Posted by Jenny [Xceed] (had 309 views)

    User (Old forums)
    Member
    Post count: 23064

    Hi Jenny

    exactly, thanks.

    Do you know if it is possible to hide the +/- sign, if a detailgrid has no rows?

    As now, all my Datarows has a detailgrid, but not all the datarows has detailsgrid rows.

    If one Datarow has a detailgrid with no rows, then the +/- sign still i displayed.
    (If there are no detailrows, then only the columnManagerRow is displayed)

    Any help?

    Imported from legacy forums. Posted by C# (had 334 views)

    Xceed Support
    Member
    Post count: 5658

    Hi C#,

    If the DetailGrid has any rows at all (including ColumnManagerRows) it will still display the +/- signs however if the DetailGrid does not have any rows (no DataRows or any other type of row) then it should not display the +/- sign.

    If your DetailGrid does not have rows (of any kind) and it still displays the +/-, contact technical support and have them take a look at the issue.

    I am sorry that I cannot be of much assistance in this matter.

    Imported from legacy forums. Posted by Jenny [Xceed] (had 380 views)

    User (Old forums)
    Member
    Post count: 23064

    ok.
    Thanks

    Imported from legacy forums. Posted by C# (had 5005 views)

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