Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
315
Moving rows from one band to another
posted

Hy!

 I need to move a group of rows from one band to another. This rows have several childbands.

Is there any easy way to do it? And when I mean "easy" I mean not making a copy of each cell and childband, just like reasinging the parent row or something.

Thanks, Luciano.

Parents
No Data
Reply
  • 45049
    posted

    To essentially move a WinGrid row from one band to another, you need to copy the data in your underlying data source from its original location to the location that corresponds to the child band in the grid.  This likely will require you to also set or change appropriate properties so that your row appears underneath the appropriate parent row.

    WinGrid doesn't provide a way to move rows between bands, and in general, it can't.  As a databound control, it determines what band to display a row at (including under which parent rows) from the underlying data source, as interpreted by the Windows Forms binding manager.

Children
No Data