Проблема WPF Datagrid, возможно, ошибка? ⇐ C#
-
Гость
Проблема WPF Datagrid, возможно, ошибка?
I am generating a datagrid dynamically and the only problem I have is that it creates an extra row at the end, it is something visual because when I delete by code the last row continues to appear.
Code:
using System; namespace WpfPatrols { using System.Collections.ObjectModel;
public class MainWindowViewModel { public ObservableCollection Patrullas { get; set; } public MainWindowViewModel() { Patrullas = GeneratePatrullas(10); } private ObservableCollection GeneratePatrullas(int count) { ObservableCollection patrullas = new ObservableCollection(); for (int i = 1; i
Источник: https://stackoverflow.com/questions/781 ... -maybe-bug
I am generating a datagrid dynamically and the only problem I have is that it creates an extra row at the end, it is something visual because when I delete by code the last row continues to appear.
Code:
using System; namespace WpfPatrols { using System.Collections.ObjectModel;
public class MainWindowViewModel { public ObservableCollection Patrullas { get; set; } public MainWindowViewModel() { Patrullas = GeneratePatrullas(10); } private ObservableCollection GeneratePatrullas(int count) { ObservableCollection patrullas = new ObservableCollection(); for (int i = 1; i
Источник: https://stackoverflow.com/questions/781 ... -maybe-bug
Мобильная версия