We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

event for current cell changed or cell value changed in GGC

Thread ID:

Created:

Updated:

Platform:

Replies:

78109 Nov 28,2008 12:28 PM UTC May 14,2009 03:15 AM UTC WinForms 2
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On November 28, 2008 12:28 PM UTC

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.


Rajadurai C [Syncfusion]
Replied On 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


Administrator [Syncfusion]
Replied On 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!

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;