Following code crashes in the latest version of FlyGrid with a null reference exception:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using NineRays.Windows.Forms.Grids;
namespace testgrid666 {
public partial class Form1 : Form {
public Form1() {
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e) {
flyGrid1.Columns.Items.Add(new Column(\"test1\"));
flyGrid1.Columns.Items.Add(new Column(\"test2\"));
flyGrid1.Columns.Items.Add(new Column(\"test3\"));
flyGrid1.Columns.Items.Add(new Column(\"test4\"));
flyGrid1.Columns.Items.Add(new Column(\"test5\"));
}
private void button1_Click(object sender, EventArgs e) {
flyGrid1.Columns.Items.RemoveAt(2);
}
}
}
Please fix it.