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!