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
270
Printing selected records from child band
posted

I'm displaying print preview for selected data from the grid by using ultraPrintPreviewDialog. For this I have used initializerow event:

 private void grid_InitializeRow(object sender, InitializeRowEventArgs e)
        {
            if (e.Row.Band.Layout.IsPrintLayout && (grid.Selected.Rows.Count > 0 ))
            {
                UltraGridRow gridRow = grid.GetRowFromPrintRow(e.Row);
                e.Row.Hidden = !gridRow.Selected;
            }
        }

 Now can anyone pls let me know how can I print the selected data from the child band in hierarchical grid.

 


Parents
  • 469350
    Verified Answer
    Offline posted

    Are you asking how to print only child rows and no parent rows? There's no way to do that. You cannot print a child row without it's parent. 

Reply Children
No Data