Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1314
Row selector error in 2009.2
posted

Hi,

When I enable row numbering in code behind and click on any cell i the row selector column, I receive the folowing error:

{System.Windows.ApplicationUnhandledExceptionEventArgs}
    base {System.EventArgs}: {System.Windows.ApplicationUnhandledExceptionEventArgs}
    ExceptionObject: {Infragistics.Silverlight.InvalidActiveCellException: The ActiveCell cannot belong to a column that has it's visibility set to Collapsed.
   at Infragistics.Silverlight.Controls.XamWebGrid.SetActiveCell(CellBase cell, CellAlignment alignment, InvokeAction action, Boolean allowSelection, Boolean setFocus, Boolean scrollIntoView)
   at Infragistics.Silverlight.Controls.XamWebGrid.SetActiveCell(CellBase cell, CellAlignment alignment, InvokeAction action, Boolean allowSelection, Boolean scrollIntoView)
   at Infragistics.Silverlight.Controls.XamWebGrid.SetActiveCell(CellBase cell, CellAlignment alignment, InvokeAction action, Boolean allowSelection)
   at Infragistics.Silverlight.Controls.Primitives.RowSelectorCell.OnCellMouseDown(MouseEventArgs e)
   at Infragistics.Silverlight.Controls.XamWebGrid.c(Object A_0, MouseButtonEventArgs A_1)
   at System.Windows.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
   at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName)}
    Handled: false

I set breakpoints in every method in the code behind, to detect if I am setting the active cell. none of my code is executed. Please advise.

Row numbering is enabled using the following context menu click event.

 

 

 

 

var setting = TflWebGrid.RowSelectorSettings;
setting.EnableRowNumbering = setting.Visibility ==  Visibility.Collapsed;
setting.Visibility = setting.EnableRowNumbering || _hasRowSelector ? Visibility.Visible : Visibility.Collapsed;

Regards

Babu

 

  • 21382
    Suggested Answer
    posted

    Hello Babu,

    This sounds like an issue that was resolved in a Service Release.  Are you using the original release dlls? 

     

    The resolved issue involved clicking on the row selector when the first column had it's visibility set to Collapsed.  If this is your issue then I would suggest applying the Service Release.