Home - Forums-.NET - FlyGrid.Net (Windows Forms) - Column number of changed cell/node...

FlyGrid.Net (Windows Forms)

.NET Datagrid - Fast, highly customizable, industry standards .NET data grid control for WinForms

This forum related to following products: FlyGrid.Net

Column number of changed cell/node...
Link Posted: 22-Jan-2006 11:56
How would you find out in VB.Net the flygrid column number of a cell/node that has been changed using the nodeSelectedChanged event???

Thanks

Simon
Link Posted: 22-Jan-2006 12:16
nodeSelectedChanged event notifies about node selection changes.
If you about cell contents modifications - NodeCellChange event is called when cell is changed:
[c#]
private void dataGrid_NodeCellChange(object sender, NodeBase node, int index, object value)
{
  Rows rows = sender as Rows;
  int row = rows.GetRowFromNode(node);
  Column col = rows.Columns.GetColumnFromCellIndex(index);
  MessageBox.Show("Cell {0}[Column:{1}], at Row:{2} has been changed with a new value [{3}]", index, col.Caption, row, value.ToString());
}