fpSpread oncolumn select

Posted by: departh on 8 September 2017, 2:49 pm EST

  • Posted 8 September 2017, 2:49 pm EST

    Hello,

    I am very new to farpoint spread, I am stuck in one issue, how can I call one function when user select one column [onColumnSelect] 

    Looking forward your quick help,

    Thanks

    Partha 

  • Replied 8 September 2017, 2:49 pm EST

    departh,

    You can use the FpSpread's Cell Click event to check if a column header was selected and perform a desired operation.A sample code which achieves the same is provided below.

     

    private void fpSpread1_CellClick(object sender, FarPoint.Win.Spread.CellClickEventArgs e)

            {

                

                

                if (e.ColumnHeader) 
    //Gets whether the cell that is clicked is in the Column Headers
                {

                    if(e.Column.ToString()=="0")

                    MessageBox.Show("Column Header A was selected");

                }

            }

     

    Best Regards,

    Abhishek

  • Replied 8 September 2017, 2:49 pm EST

    Thank you Abhishek, 

    I needed onColumn selection event action, but  by using Cell selection I can do my job, :)

    Regards

    Partha 

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels