[Mono-bugs] [Bug 588210] New: DataColumn Expression (ItemArray) not evaluated when rows/columns added to DataTable

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Mar 14 04:34:34 EDT 2010



           Summary: DataColumn Expression (ItemArray) not evaluated when
                    rows/columns added to DataTable
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.6.x
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Data
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: janvanderwatt at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

Created an attachment (id=348348)
 --> (http://bugzilla.novell.com/attachment.cgi?id=348348)
Test case

User-Agent:       Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR
2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E)

https://bugzilla.novell.com/show_bug.cgi?id=323194 could be relevant.

In the test attached it seems that on Mono, the expressions for the DataColumn
are not evaluated when the rows are added to the table (as is the case on
MS.NET), or when a column with an expression is added.

However, as soon as a column is referred to by name (e.g. row["ColumnName"]),
the expressions are evaluated.

Reproducible: Always

Steps to Reproduce:
See attached test case, and outputs for MS.NET and MONO.
NOTE: Binding to a gridview affects the column values of those columns with
expressions in the table, so I had to add some debug routines to get the
contents of the tables out.
Actual Results:  
Refreshing of the evaluated columns is delayed - I'm not exactly sure what
triggers the process. On MS.NET, evaluation is NOT delayed.

See attachment: "MONO - ColumnExpression.aspx.html"

Expected Results:  
When a DataRow is added to the DataTable, the colum's with expressions should 
be evaluated immediately.
When a DataColumn with an expression is added to the DataTable, all rows should
be updated immediately.

See attachment: "MS.NET - ColumnExpression.aspx.html"

It is possible that this anomaly is simply limited to the ItemArray of each row
- it's not entirely clear where the issue lies.

I am using the ItemArray extensively to copy and manipulate tables in a generic
fashion so making use of the columns by name isn't really an option.

Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list