bool failed = false;
//Final Check of FirstIndex
- if (colView.InternalItemSource.Count - 1 < firstIndex)
+ if ((colView.InternalItemSource.Count - 1 < firstIndex) ||
+ (colView.InternalItemSource.IsFooter(firstIndex) && (colView.InternalItemSource.Count - 1) == firstIndex))
{
StepCandidate = 0F;
failed = true;
// Insert Single item.
if (source == null) throw new ArgumentNullException(nameof(source));
if (colView == null) return;
- if (isSourceEmpty || StepCandidate == 0)
+ if (isSourceEmpty || StepCandidate <= 1)
{
Initialize(colView);
}
// Insert Group
if (source == null) throw new ArgumentNullException(nameof(source));
if (colView == null) return;
- if (isSourceEmpty || StepCandidate == 0)
+ if (isSourceEmpty || StepCandidate <= 1)
{
Initialize(colView);
}
bool failed = false;
//Final Check of FirstIndex
-
- if (colView.InternalItemSource.Count - 1 < firstIndex)
+ if ((colView.InternalItemSource.Count - 1 < firstIndex) ||
+ (colView.InternalItemSource.IsFooter(firstIndex) && (colView.InternalItemSource.Count - 1) == firstIndex))
{
StepCandidate = 0F;
failed = true;