Hi, I am having some problem on clicking the cell and perform an action. Hope that support team can help me.
What I want is click on particular cell, then perform a statement. It should able to get others cell value which same row with the clicked cell.
I try to use following events, when i click on the certain cell, it prompt few times of messagebox, which will execute the statement few times, may I how to prevent this? Thank you !!
gridgroupcontrol.TableControlCellClick += gridgroupcontrol_TableControlCellClick;
void gridgroupcontrol_TableControlCellClick(object sender, GridTableControlCellClickEventArgs e)
{
GridTableCellStyleInfo style = e.TableControl.GetTableViewStyleInfo(e.Inner.RowIndex, e.Inner.ColIndex);
if (style != null && style.TableCellIdentity != null && style.TableCellIdentity.DisplayElement != null && style.TableCellIdentity.DisplayElement.GetRecord() != null && style.TableCellIdentity.Column != null)
{
if (style.TableCellIdentity.Column.Name == "Age")
{
MessageBox.Show("AGE");
}
else if (style.TableCellIdentity.Column.Name == "Group")
{
MessageBox.Show("GROUP");
}
}
}