Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
19227 | Sep 21,2004 02:37 PM UTC | Sep 21,2004 05:28 PM UTC | WinForms | 2 |
![]() |
Tags: Grouping |
//this.groupingGrid1.GridGroupDropArea.Model.TableStyle.BackColor = Color.Gainsboro;
this.groupingGrid1.GridGroupDropArea.DrawCell += new GridDrawCellEventHandler(GridGroupDropArea_DrawCell);
this.groupingGrid1.GridGroupDropArea.Paint += new PaintEventHandler(GridGroupDropArea_Paint);
this.groupingGrid1.GridGroupDropArea.Model.Properties.BackgroundColor = Color.Transparent;
this.groupingGrid1.GridGroupDropArea.Dock = DockStyle.Fill;
this.groupingGrid1.GridGroupDropArea.PrepareViewStyleInfo += new GridPrepareViewStyleInfoEventHandler(GridGroupDropArea_PrepareViewStyleInfo);
}
bool paintFirst = true;
private void GridGroupDropArea_PrepareViewStyleInfo(object sender, GridPrepareViewStyleInfoEventArgs e)
{
e.Style.BackColor = Color.Transparent;
}
private void GridGroupDropArea_Paint(object sender, PaintEventArgs e)
{
paintFirst = true;
}
private void GridGroupDropArea_DrawCell(object sender, GridDrawCellEventArgs e)
{
if (paintFirst)
{
Control c = (Control) sender;
Syncfusion.Drawing.BrushInfo gradient = new Syncfusion.Drawing.BrushInfo(Syncfusion.Drawing.GradientStyle.Horizontal, Color.White, Color.Gray);
Syncfusion.Drawing.BrushPaint.FillRectangle(e.Graphics, c.ClientRectangle, gradient);
}
paintFirst = false;
}
Stefan
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.