Posted 8 September 2017, 1:22 pm EST
Iam using a context menu which has to appear when i right-click on only column headers and row headers.
For columns,it has the items as 'Add column'.'Remove column'
For rows,it has the items as 'Add row'.'Remove row'
It must work exactly like an Excel sheet..like .adding a row/column wherever the user points to, within a specified set of columns or rows.
the code below doesnt work under this cell click event.It appears only on form_load event.
privatevoid fpSpread2_CellClick(object sender, FarPoint.Win.Spread.EditorNotifyEventArgs e)
""MenuItem mi = new MenuItem("Remove Selection");
mi.Click +=new EventHandler(mi_Click);
ContextMenu cm = new ContextMenu();
fpSpread2.ContextMenu = cm; ""
the event 'mi_Click' that is called here also doesnt work.I want the row/column to be added only at the specific position the user clicks.
This event doesnt accept e.Column or e.Row.
Can somebody help me with this.I have been browsing a lot for this code but in vain.
Am using C# code