
January 6, 2011 09:27 by
Admin
“Cannot change ReadOnly property of the expression column”, has been a known bug since 2002 in the .net framework.
Basically when you use an insert and update with your column you will have this error. An easy work around is to simply copy the content from a non expression column and manipulate the data row by row.
This example creates a hyperlink from table data, removing spaces and adding a page suffix.
Dim row As DataRow
For Each row In myDataSet.Tables("DT1").Rows
row("C2") = row("C1").ToString.Replace(" ", "-")
row("C2") = row("C2").ToString + "-page.aspx"
Next
94ef22e4-74a9-468d-b82a-f305a1b25bb9|0|.0