473,324 Members | 2,473 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

making DataRowView field read/write???

VMI
I have a field in my DataRowView that's read-only because it's a "join" of
several other fields of the same DataRowView. For example, the field "Input"
concatenates fields "Addr1", "City", "St", and "Zip", so I can't modify it.
Is it possible to modify the properties of that particular field so that it
can be written to? If not, can I copy that DataRowView into another
DataRowView and then modify the field? The copy should be an exact copy,
since the method's expecting a DataRowView with the same field names (and
number of fields).

Thanks.
Nov 17 '05 #1
1 1855
Is it possible to modify the properties of that particular field so that it
can be written to?

Is the field an "Expression" field or is the concatenation performed in code?

Either way, if the field in the DataTable isn't marked as "ReadOnly", i believe you can still write to it.

--
Dave Sexton
dave@www..jwaonline..com
-----------------------------------------------------------------------
"VMI" <vo******@yahoo.com> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl...
I have a field in my DataRowView that's read-only because it's a "join" of several other fields of the same DataRowView. For
example, the field "Input" concatenates fields "Addr1", "City", "St", and "Zip", so I can't modify it. Is it possible to modify the
properties of that particular field so that it can be written to? If not, can I copy that DataRowView into another DataRowView and
then modify the field? The copy should be an exact copy, since the method's expecting a DataRowView with the same field names (and
number of fields).

Thanks.

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: middletree | last post by:
For an ASp Intranet app, I have some code that should work, but I am not able to make it happen for some reason, after spending considerable time on this. I am pretty thick when it comes to...
3
by: André Almeida Maldonado | last post by:
Why when I execute this code, my DropDownList is populated with the value "System.Data.DataRowView"???? See the code: cmdCommand.CommandText = "SELECT UsuaNome FROM usuarios" ...
3
by: John Hoge | last post by:
I have a datagrid that needs to display information from a related table, and I have use a template column to pass the Container.DataItem object to a method called ShowPub as follows: ...
1
by: nate axtell | last post by:
In VB .Net I made a custom CheckBox column style (for the Datagrid control) that maps to two DataTable columns , one it uses for the Checked status and the other it uses for the Enabled status. I am...
5
by: Tom Edelbrok | last post by:
I notice that using the SqlDataReader requires the use of ordinal field references rather than by name. For example, do while (myDataReader.Read())...
8
by: Mark | last post by:
Hello. I am attempting to write binary data from a file to an OLE Object field, and then write the file back out from the database. I am reading and writing the files in binary mode, and using...
2
by: Joe | last post by:
Hello All: How have you used the DataRowView. I am familiar w/ DataRow (of course!), but haven't had the need to use the DataRowView. When would you use it? Thanks. Joe
3
by: needin4mation | last post by:
In this code: protected void GridView1_RowCreated(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { DataRowView rowView =...
3
by: Jerry | last post by:
Hi I have a combo box that is populated by an ole db connection to a ms access table (Valuewave). The column that is used in the table is called waves. The combo box is populated with the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.