HA
haneefm
Syncfusion Team
April 16, 2007 05:16 PM UTC
Hi Raghav,
How to hide particular row when the grid is in printing?
>>>>
One way you can hanlde the QueryRowHeight event and set the e.Size to "0" when the grid is in PrintingMode. Here is a code snippet that shows you "How to hide particular row when the grid is in printing?"
this.gridControl1.QueryRowHeight +=new GridRowColSizeEventHandler(gridControl1_QueryRowHeight);
private void gridControl1_QueryRowHeight(object sender, GridRowColSizeEventArgs e)
{
if( this.gridControl1.PrintingMode && e.Index == 4 )
{
e.Size = 0;
e.Handled = true;
}
}
Best regards,
Haneef