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
690
Ultragrid selective print issue in hierarchical data
posted

Hi,

My data source to ultragrid is dataset containing two tables in relation, so it displays hierarchical data in ultragrid. Now, i have a situation where i need to print all the parent rows but selective child rows only. Is there anyway to do such selection while i am printing my datagrid??

following is my pseudo code that is being used to print my grid:-

1. Initially i am expanding all rows.

2. objUltraGridPrintDocument. Datasource= ultragrid.

3.objUltraPrintPreviewDialog.Document = objUltraGridPrintDocument

4. objUltraPrintPreviewDialog.Document.Print()

I was wondering if there is any event in UltraGridPrintDocument or UltraPrintPreviewDialog i can use to hide or avoid some child rows being pritned.??

Thanks
Miztaken