mail-archives/mono-bugs/2009-February/086488.html

184 строки
6.2 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-bugs] [Bug 479405] New: DataView RowFilter display abnormal in mono, but .net ok
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%20479405%5D%20New%3A%20DataView%20RowFilter%20display%20abnormal%0A%20in%20mono%2C%20but%20.net%20ok&In-Reply-To=">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="086548.html">
<LINK REL="Next" HREF="086489.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-bugs] [Bug 479405] New: DataView RowFilter display abnormal in mono, but .net ok</H1>
<B>bugzilla_noreply at novell.com</B>
<A HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%20479405%5D%20New%3A%20DataView%20RowFilter%20display%20abnormal%0A%20in%20mono%2C%20but%20.net%20ok&In-Reply-To="
TITLE="[Mono-bugs] [Bug 479405] New: DataView RowFilter display abnormal in mono, but .net ok">bugzilla_noreply at novell.com
</A><BR>
<I>Wed Feb 25 02:59:18 EST 2009</I>
<P><UL>
<LI>Previous message: <A HREF="086548.html">[Mono-bugs] [Bug 479402] gmcs recognize only one of the DEFINE.
</A></li>
<LI>Next message: <A HREF="086489.html">[Mono-bugs] [Bug 479405] DataView RowFilter display abnormal in mono, but .net ok
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#86488">[ date ]</a>
<a href="thread.html#86488">[ thread ]</a>
<a href="subject.html#86488">[ subject ]</a>
<a href="author.html#86488">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE><A HREF="https://bugzilla.novell.com/show_bug.cgi?id=479405">https://bugzilla.novell.com/show_bug.cgi?id=479405</A>
Summary: DataView RowFilter display abnormal in mono, but .net
ok
Classification: Mono
Product: Mono: Runtime
Version: 2.2.x
Platform: i586
OS/Version: openSUSE 11.1
Status: NEW
Severity: Normal
Priority: P5 - None
Component: generics
AssignedTo: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs at lists.ximian.com</A>
ReportedBy: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">tsai at pinnacle.com.tw</A>
QAContact: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs at lists.ximian.com</A>
Found By: ---
Created an attachment (id=275236)
--&gt; (<A HREF="https://bugzilla.novell.com/attachment.cgi?id=275236">https://bugzilla.novell.com/attachment.cgi?id=275236</A>)
visual studio project source
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.0.6)
Gecko/2009011913 Firefox/3.0.6
dataGridView1.DataSource = MakeDataTable(); // generate DataTable with 10
records
DataView view = ((DataTable)dataGridView1.DataSource).DefaultView;
view.RowFilter = &quot;Qty&gt;=3 and Qty&lt;=8&quot;; // filter 3 records
DataGridView display ok (records is 7) in .net,
but mono (2.0.1 and 2.2) on SUSE 11.1 abnormal (RowFilter not active so records
is 10).
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 = &quot;&quot;;
else
view.RowFilter = &quot;Qty&gt;=3 and Qty&lt;=8&quot;;
// 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(&quot;System.String&quot;);
column.Caption = &quot;Item&quot;;
column.ColumnName = &quot;Item&quot;;
table.Columns.Add(column);
column = new DataColumn();
column.DataType = System.Type.GetType(&quot;System.Decimal&quot;);
column.Caption = &quot;Qty&quot;;
column.ColumnName = &quot;Qty&quot;;
table.Columns.Add(column);
DataRow row;
for (int i = 1; i &lt;= 10; i++)
{
row = table.NewRow();
row[&quot;Item&quot;] = &quot;Item &quot; + i.ToString();
row[&quot;Qty&quot;] = i;
table.Rows.Add(row);
}
return table;
}
}
}
Reproducible: Always
Steps to Reproduce:
1. run MonoBug.exe in openSUSE
2. press bug button
3. in .net DataGridView records is 7, but in mono records is 10 (Error)
--
Configure bugmail: <A HREF="https://bugzilla.novell.com/userprefs.cgi?tab=email">https://bugzilla.novell.com/userprefs.cgi?tab=email</A>
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="086548.html">[Mono-bugs] [Bug 479402] gmcs recognize only one of the DEFINE.
</A></li>
<LI>Next message: <A HREF="086489.html">[Mono-bugs] [Bug 479405] DataView RowFilter display abnormal in mono, but .net ok
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#86488">[ date ]</a>
<a href="thread.html#86488">[ thread ]</a>
<a href="subject.html#86488">[ subject ]</a>
<a href="author.html#86488">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/mono-bugs">More information about the mono-bugs
mailing list</a><br>
</body></html>