Posted 8 December 2021, 6:01 am EST
Code Breaking Inside Overriden Create Cell
public override FrameworkElement CreateCell(C1.WPF.FlexGrid.C1FlexGrid grid, C1.WPF.FlexGrid.CellType cellType, C1.WPF.FlexGrid.CellRange range)
{
FrameworkElement createCell = base.CreateCell(grid, cellType, range);
if ((grid[range.Row, range.Column] is ARReadOnlyValueBridge) || (grid[range.Row, range.Column] is ARConstantMOComboBoxBridge))
{
BehaviorCollection behaviors = Interaction.GetBehaviors(createCell);
behaviors.Add(new DragBehavior((FinancialsGrid)grid));
}
//if(range.Row > -1 && range.Column > -1)
//{
//} return createCell; }
We were using C1.WPF.FlexGrid.4 and it is working fine with that Dll. but for Analysis when I updated to C1.WPF.FlexGrid.4.5.2(latest version). the code (grid[range.Row, range.Column) is breaking saying index out of range.
Can you please help ? what has changed in the latest version ? any help would be appriciated.
Regards,
Abdul Muqsit.
Thanks