Home - Forums-.NET - FlyGrid.Net (Windows Forms) - DropDownListColumn, just after a selection

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

DropDownListColumn, just after a selection
Link Posted: 15-Jan-2007 11:44
Dear all,
   I'm using FlyGrid.Net to show and change the status of graphs in another PictureBox.  One column is a DropDownListColumn, that represents the colors for the graphs.  

   What I'd like to happen is, immediately after the user chooses a color, the graph changes color.  I cannot find any way to do this.

   I have tried adding the following:

           m_flygridPCRInfo.MouseUp += new MouseEventHandler(m_flygridPCRInfo_MouseUp);
            m_flygridPCRInfo.NodeCellChange += new NodeCellHandler(m_flygridPCRInfo_NodeCellChange);
            m_flygridPCRInfo.NodeChange += new NodeHandler(m_flygridPCRInfo_NodeChange);
            m_flygridPCRInfo.NodeSelectedChange += new NodeHandler(m_flygridPCRInfo_NodeChange);
            m_flygridPCRInfo.NodeStateChange += new NodeHandler(m_flygridPCRInfo_NodeChange);


   In all cases, the events take place before the user has made her selection.  I have also made a class that inherits from DropDownListColumn, and overridden the following command:

override protected void OnChanged(InvalidationMode mode, bool refreshMap)


    In this case, as with the others, there is no reaction after the user has made her selection from the drop-down menu.

    Can anyone help?  I'm a new C# programmer.  Thank you for your time.
Link Posted: 15-Jan-2007 12:52
Use FlyGrid.NodeSelectedChange event handler, like following:
[c#]
private InitFlyGrid(FlyGrid flyGrid)
{
  //....
  flyGrid.NodeSelectedChange += new NodeHandler(flyGrid_NodeSelectedChange);
}

private void flyGrid_NodeSelectedChange(object sender, NodeBase node)
{
  if (node.Selected)
  {
    //change graphs color
  }
}