Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
18850 | Sep 10,2004 11:49 AM UTC | Sep 13,2004 05:08 PM UTC | WinForms | 4 |
![]() |
Tags: GridControl |
this.gridGroupingControl1.GridGroupDropArea.PrepareViewStyleInfo += new GridPrepareViewStyleInfoEventHandler(GridGroupDropArea_PrepareViewStyleInfo);
//the handler
private void GridGroupDropArea_PrepareViewStyleInfo(object sender, GridPrepareViewStyleInfoEventArgs e)
{
e.Style.BackColor = Color.Red;
}
2) Make sure the AllowSelections property includes the AlphBlend flag.
gcc.TableOptions.ListBoxSelectionMode = SelectionMode.MultiExtended;
gcc.TableOptions.AllowSelection = GridSelectionFlags.Any;
>this.gridGroupingControl1.GridGroupDropArea.PrepareViewStyleInfo += new GridPrepareViewStyleInfoEventHandler(GridGroupDropArea_PrepareViewStyleInfo);
>
>
>//the handler
>private void GridGroupDropArea_PrepareViewStyleInfo(object sender, GridPrepareViewStyleInfoEventArgs e)
>{
> e.Style.BackColor = Color.Red;
>}
>
>
>2) Make sure the AllowSelections property includes the AlphBlend flag.
>
>gcc.TableOptions.ListBoxSelectionMode = SelectionMode.MultiExtended;
>gcc.TableOptions.AllowSelection = GridSelectionFlags.Any;
>
>
this.gridGroupingControl1.GridGroupDropArea.Dock = DockStyle.Fill;
this.gridGroupingControl1.GridGroupDropArea.Model.Properties.BackgroundColor = Color.Red;
Here is a sample with the alpha blend selection set ok as well as coloring teh drop area.
GGC_9672.zip
>this.gridGroupingControl1.GridGroupDropArea.Dock = DockStyle.Fill;
>this.gridGroupingControl1.GridGroupDropArea.Model.Properties.BackgroundColor = Color.Red;
>
>
>Here is a sample with the alpha blend selection set ok as well as coloring teh drop area.
>GGC_9672.zip
>
> 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.