文檔半島外圍網上直營>>DevExpress WinForm中文手冊>>如何自定義打印外觀
                如何自定義打印外觀
下面的示例代碼演示了如何將打印外觀和背景顏色自定義應用于網格控件中的偶數行。
C#:
gridView1.OptionsPrint.UsePrintStyles = true; // Enable the AppearancePrint.EvenRow property's settings. gridView1.OptionsPrint.EnableAppearanceEvenRow = true; // Set the background color of the even rows. gridView1.AppearancePrint.EvenRow.BackColor = Color.LightYellow;
VB.NET:
GridView1.OptionsPrint.UsePrintStyles = True ' Enable the AppearancePrint.EvenRow property's settings. GridView1.OptionsPrint.EnableAppearanceEvenRow = True ' Set the background color of the even rows. GridView1.AppearancePrint.EvenRow.BackColor = Color.LightYellow
結果如下圖所示:

 QQ交談
QQ交談 在線咨詢
在線咨詢 
                 
                
 渝公網安備
            50010702500608號
渝公網安備
            50010702500608號
             
            
 客服熱線
客服熱線