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. 1 1879
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..jwaon line..com
-----------------------------------------------------------------------
"VMI" <vo******@yahoo .com> wrote in message news:%2******** ********@TK2MSF TNGP12.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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 javascript; I just don't get the syntax
at all. If
anyone could help, I would appreciate it. I'm probably pretty close. Please
note that because it's an Intranet, all users have to use IE 5 or higher.
Situation:
3 form fields on an ASP. <select>...
|
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"
dapAdapter.SelectCommand = cmdCommand 'dapAdapter is a DataAdapter
dapAdapter.Fill(dtsDataSet, "Usuarios")
|
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:
<asp:TemplateColumn HeaderText="Publisher">
<ItemTemplate>
<asp:Label Runat="server" Text='<%#ShowPub(Container.DataItem)%>' />
</ItemTemplate>
</asp:TemplateColumn>
|
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 having a couple problems so far.
1. with the way the Paint method works: When I scroll to the right, the custom column gets Drawn on top of the left-most "Selecting" column (the one where the green arrows are displayed). How can I possibly modify...
|
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())
Console.Write(myDataReader.GetInt32(0).ToString() + Chr(9))
Console.Write(myDataReader.GetString(2) + " " +
myDataReader.GetString(1) + Chr(9))
Console.Write(myDataReader.GetString(3) + Chr(9))
if (myDataReader.IsDBNull(4)) then
| |
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 GetChunk and AppendChunk to read
and write binary data from the OLE Object field. I am
using VBA and DAO for this experiment. The OLE Object
field is being used to store Long Binary data.
|
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
|
by: needin4mation |
last post by:
In this code:
protected void GridView1_RowCreated(object sender,
GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
DataRowView rowView = (DataRowView)e.Row.DataItem;
// Retrieve the value for the current row.
|
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 correct values, but when I refer to the
selectedItem value using WaveItem = cboWaves.SelectedItem.ToString();
MessageBox.Show(WaveItem);
I get System.Data.DataRowView. I have checked the spelling of the database
in the connection string, the table,...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |