We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Current Cell showing white in selection

Thread ID:





20244 Oct 13,2004 06:39 AM UTC Oct 13,2004 09:20 PM UTC WinForms 1
Tags: Grouping
Dominic Morris
Asked On October 13, 2004 06:39 AM UTC

Is there anyway of making the current cell appear alpha-blended along with the rest of any selection range? thanks, D.

Administrator [Syncfusion]
Replied On October 13, 2004 09:20 PM UTC

Being the currentcell and being selected are normally two different things. If you want to make the currentcell look selected while it is not actively being edited, then you can handle the TableControlCellDrawn event and paint it with the blended color to get the selected effect. But while the cell is being edited, it is the embedded cell control that this color, and things like teh RichText control which is used by our TextBox cell does not support alphablending.
private void gridGroupingControl1_TableControlCellDrawn(object sender, GridTableControlDrawCellEventArgs e)
	GridCurrentCell cc = this.gridGroupingControl1.TableControl.CurrentCell;
	if(e.Inner.RowIndex ==  cc.RowIndex && e.Inner.ColIndex == cc.ColIndex)
		using(Brush br = new SolidBrush(this.gridGroupingControl1.TableControl.Model.Options.AlphaBlendSelectionColor))
			e.Inner.Graphics.FillRectangle(br, e.Inner.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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon