Mono/WinForm DataGridView Delete line causes application end
Rodrigo Augusto Correia Rosalino <[email protected]>
| Newsgroups | gmane.comp.gnome.winforms |
|---|---|
| Message-ID | <[email protected]> |
Hello everybody...
I'm starting with Mono (C# and Windows Forms) and i found something interesting...
I created one small project (just for testing) using Windows Forms and C#. I added one form with one DataGridView and one button.
The code for this button is:
this.dataGridView1.Rows.Add(new object[] { "FIELD 0", "FIELD 1", "FIELD 2", "FIELD 3" });
When i click this button 2 times, my application adds 2 new lines. If i try to delete this lines, first i select the line then i press delete. The first line is deleted just fine but the second line cause my application to end without any warning or any kind of exception. It just ends.
Any help would be appreciated.
Thanks in advance.
Rodrigo
_________________________________________________________________
Mude seu visual no Messenger e divirta-se com seus amigos online. Clique e veja como
http://ilm.windowslive.com.br/?ocid=ILM:ILM:Hotmail:Tagline:1x1:Tagline
_______________________________________________
Mono-winforms-list maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list