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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

ActivateCurrentCellBehavior with each colum in GDBG, how to do ?

Thread ID:

Created:

Updated:

Platform:

Replies:

23887 Jan 22,2005 07:17 AM UTC Jan 23,2005 11:58 PM UTC WinForms 2
loading
Tags: GridControl
David Bosak
Asked On January 22, 2005 07:17 AM UTC

I want my GDBD have two column which have the different attribute Activate Current Cell Behaviors. For example: SetCurrent,and Select All. How to do that ?

Administrator [Syncfusion]
Replied On January 22, 2005 07:57 AM UTC

Try setting this.grid.ActivateCurrentCellBehavior = GridCellActivateAction.SetCurrent; Then handle the CurrentCellMoved event and if you are in the column where you want to selectall, explicilty do it.
private void gridDataBoundGrid1_CurrentCellMoved(object sender, GridCurrentCellMovedEventArgs e)
{
	
	GridCurrentCell cc = this.gridDataBoundGrid1.CurrentCell;
	if(cc.ColIndex == 2)
	{
		GridTextBoxControl tb = cc.Renderer.Control as GridTextBoxControl;
		if(tb != null)
		{
			tb.SelectAll();
		}
	}
}

David Bosak
Replied On January 23, 2005 11:58 PM UTC

It works now. Thank you

CONFIRMATION

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.

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

;