Hi
I am using a radgridview.I have used a combo box inside cell edit template of a gridViewDataColumn.When i Add a new row,this cell has to go to edit mode,i.e. Change to combo box.I have used the following code snippet to set focus and make it to move to edit mode,But it is not happening.Only Focus is set around the cell,but cell has not gone into edit mode which in this case is a combo Box.Kindly give me a solution or a sample code.
I am using a radgridview.I have used a combo box inside cell edit template of a gridViewDataColumn.When i Add a new row,this cell has to go to edit mode,i.e. Change to combo box.I have used the following code snippet to set focus and make it to move to edit mode,But it is not happening.Only Focus is set around the cell,but cell has not gone into edit mode which in this case is a combo Box.Kindly give me a solution or a sample code.
private void _BoxGrid_SelectionChanged(object sender, Telerik.Windows.Controls.SelectionChangeEventArgs e)
{
int lastCount = e.AddedItems.Count - 1;
if (e.AddedItems.Count != 0 && e.AddedItems[0] != null)
{
var s = e.AddedItems[lastCount] as GenerateBoxNumberEntity;
if (s.IsNewFileSet)
{
_BoxGrid.Columns[6].Focus();
_BoxGrid.BeginEdit();
}
}
}
regards
gayathri