ActivateCurrentCellBehavior with each colum in GDBG, how to do ?

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 ?

2 Replies

AD Administrator Syncfusion Team 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();
		}
	}
}


DB David Bosak January 23, 2005 11:58 PM UTC

It works now. Thank you

Loader.
Up arrow icon