[Mono-winforms-list] Mono/WinForm DataGridView Delete line causes application end

Rodrigo Augusto Correia Rosalino rorosalino at hotmail.com
Sun Apr 25 21:23:51 EDT 2010


 

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20100425/539745ee/attachment.html 


More information about the Mono-winforms-list mailing list