JJ
Jeraldes J
Syncfusion Team
June 23, 2010 09:13 AM UTC
Hi Faizal,
Thank you for your interest in Syncfusion products.
You can use the following C# code to fetch the current active editable cell value.
//Use this CurrentCellChanged event for getting every single key event value change in the editing cell
void JsGrid2_CurrentCellChanged(object sender, Syncfusion.Windows.ComponentModel.SyncfusionRoutedEventArgs args)
{
GridControl celldata = args.Source as GridControl;
TextBox item = celldata.CurrentCell.ActivateOptions.Element as TextBox;
var value = item.Text;
Console.WriteLine("contains = " + value);
}
//CurrentCellEditingComplete will get the edited cell value once the cell is edited
void JsGrid2_CurrentCellEditingComplete(object sender, Syncfusion.Windows.ComponentModel.SyncfusionRoutedEventArgs args)
{
GridControl celldata = args.Source as GridControl;
var item = celldata.Model.CurrentCellState.CellRowColumnIndex;
var contains = this.JsGrid2.Model[item.RowIndex, item.ColumnIndex].CellValue;
Console.WriteLine("[" + item.RowIndex + "," + item.ColumnIndex + "] contains = " + contains);
}
Let us know if you need any other details
Regards
Jeraldes J