[Mono-winforms-list] Bug 479405 has not patched in Mono 2.4RC3.2 one month's ago

Ivan N. Zlatev contact at i-nz.net
Tue Mar 24 23:38:52 EDT 2009


On Tue, Mar 24, 2009 at 1:31 AM, peter tsai <tsai at pinnacle.com.tw> wrote:
>
> I'm using Mono 2.2 on openSuSE 11.1. Unfortunately, I compile Mono 2.4RC3.2
> has problem,too.
> who can help me? thanks in advance.

Fixed in r130179.

The problem was in the DataView class not firing ListChanged when the
RowFilter changes.


>
> dataGridView1.DataSource = MakeDataTable();   // generate DataTable with 10
> records
> DataView view = ((DataTable)dataGridView1.DataSource).DefaultView;
> view.RowFilter = "Qty>=3 and Qty<=8";    // filter 4 records
>
> DataGridView display ok (records is 7) in .net,
> but mono (2.0.1, 2.2 and 2.4RC3.2) on SUSE 11.1 abnormal (RowFilter not
> active, so records is still 10).
> mono 2.4RC3.2 crashed my application
>
> namespace MonoBug
> {
>    public partial class MonoBug : Form
>    {
>        bool inFilter = false;
>        private void button2_Click(object sender, EventArgs e)  // bug
>        {
>            DataView view =
> ((DataTable)dataGridView1.DataSource).DefaultView;
>            if (inFilter)
>                view.RowFilter = "";
>            else
>                view.RowFilter = "Qty>=3 and Qty<=8";
>
>            // run in .net ok, but mono (2.0.1 and 2.2) on SUSE 11.1
> abnormal
>            // visual studio 2005 complier on windows XP
>            // dataGridView1.Invalidate();
>
>            inFilter = !inFilter;
>        }
>
>        public MonoBug()
>        {
>            InitializeComponent();
>
>            dataGridView1.ReadOnly = true;
>            dataGridView1.AllowUserToAddRows = false;
>            dataGridView1.DataSource = MakeDataTable(); ;
>        }
>
>        private DataTable MakeDataTable()
>        {
>            DataTable table = new DataTable();
>
>            DataColumn column = new DataColumn();
>            column.DataType = System.Type.GetType("System.String");
>            column.Caption = "Item";
>            column.ColumnName = "Item";
>            table.Columns.Add(column);
>
>            column = new DataColumn();
>            column.DataType = System.Type.GetType("System.Decimal");
>            column.Caption = "Qty";
>            column.ColumnName = "Qty";
>            table.Columns.Add(column);
>
>            DataRow row;
>            for (int i = 1; i <= 10; i++)
>            {
>                row = table.NewRow();
>                row["Item"] = "Item " + i.ToString();
>                row["Qty"] = i;
>                table.Rows.Add(row);
>            }
>            return table;
>        }
>    }
> }
>
> --
> View this message in context: http://www.nabble.com/Bug-479405-has-not-patched-in-Mono-2.4RC3.2-one-month%27s-ago-tp22672789p22672789.html
> Sent from the Mono - WinForms mailing list archive at Nabble.com.
>
> _______________________________________________
> Mono-winforms-list maillist  -  Mono-winforms-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
>



-- 
Kind Regards,
Ivan N. Zlatev


More information about the Mono-winforms-list mailing list