Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
16304 | Jul 12,2004 12:38 PM UTC | Jul 12,2004 02:42 PM UTC | WinForms | 3 |
![]() |
Tags: GridControl |
grid.Selections.Add(GridRangeInfo.Row(someRowIndex))
Normally, this would tell the grid to draw an alphablended selection rectangle over the row, and would not affect the background image. private void gridControl1_CellDrawn(object sender, Syncfusion.Windows.Forms.Grid.GridDrawCellEventArgs e) { if(e.RowIndex == 2 && e.ColIndex > 0) { using(Brush br = new SolidBrush(Color.FromArgb(60, Color.Orange))) { e.Graphics.FillRectangle(br, e.Bounds); } } else if(e.RowIndex == 5 && e.ColIndex > 0) { using(Brush br = new SolidBrush(Color.FromArgb(60, Color.Blue))) { e.Graphics.FillRectangle(br, e.Bounds); } } }
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.