Itemsource として IEnumerable を受け入れるカスタム グリッドを作成していました。ただし、削除メソッド中に itemsource 内のアイテムを削除できませんでした。以下のコードを使用して私を助けることができますか?
static void Main(string[] args)
{
List<MyData> source = new List<MyData>();
int itemsCount = 20;
for (int i = 0; i < itemsCount; i++)
{
source.Add(new MyData() { Data = "mydata" + i });
}
IEnumerable mItemsource = source;
//Remove Sample of an mItemSource
//goes here ..
}
public class MyData { public string Data { get; set; } }