event for current cell changed or cell value changed in GGC

Hello,

1.Can you plese tell me which event gets fired when the cell value of any cell in GGC is editted by user.
2.If I add custom cell type like customized combobox and add it to GGC cell, when user selects certain item from this combobox which event of GGC may notify this?
3.Preferably I am looking to change the cellvalue of some other cell depending upon the selection/data entry made by user in a particular cell of GGC.Kindly suggest the event which will help me do this.

Need urgent help.I use Syncfusion 6.3.1.8.

Thanks.


2 Replies

RC Rajadurai C Syncfusion Team December 1, 2008 01:47 PM UTC

Hi Keshav,

Thanks for your interest in Syncfusion products.

1)The CurrentCellStartEditing event get fired when the user starts editing in cell.

2)On selecting an item in dropdownpart of custom combobox celltype the SelectedValueChanged event can be triggerred through the following code.

GridComboBoxCellRenderer cr;
void TableControl_CurrentCellShowingDropDown(object sender, GridCurrentCellShowingDropDownEventArgs e)
{
cr = this.gridGroupingControl1.TableControl.CurrentCell.Renderer as GridComboBoxCellRenderer;
cr.ListBoxPart.SelectedValueChanged += new EventHandler(ListBoxPart_SelectedValueChanged);
}

void ListBoxPart_SelectedValueChanged(object sender, EventArgs e)
{
cr.TextBox.Text = cr.ListBoxPart.SelectedItem.ToString();
}


3)To change the cell value of other cell based on the cell value changed in one cell, CurrentCellChanged event can be handled.

void TableControl_CurrentCellChanged(object sender, EventArgs e)
{
GridCurrentCell cc = this.gridGroupingControl1.TableControl.CurrentCell;
if (cc.ColIndex == 2 && cc.Renderer.ControlText .Contains ("o"))
{
cc.ConfirmChanges();
this.gridGroupingControl1.TableModel[cc.RowIndex, cc.ColIndex + 1].CellValue = "Hai";
}
}


Regards,
Rajadurai



AD Administrator Syncfusion Team May 14, 2009 03:15 AM UTC

And, I answered my final question, now that I know what to ask. I was looking for CurrentCell changed, and I needed to use

gridControl1.CurrentCell.Renderer.ControlText

I've got all the info I need now!

Loader.
Up arrow icon