473,466 Members | 1,358 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Unable to edit data in DataView/Datable. Column is read only??

Hi,

I did this but failed:

dtbResultConfig.Rows(0).BeginEdit()
' Hit a 'Column 'FKTableName' is read only error at the line below
dtbResultConfig.Rows(0)("FKTableName") = "something"
dtbResultConfig.Rows(0).EndEdit()
dtbResultConfig.AcceptChanges()

Can anyone helps? Thank in advance!

Antonio
Jul 21 '05 #1
1 2812
Solved. Do not use:

sqlAdapter.MissingSchemaAction = MissingSchemaAction.AddWithKey

if you planned to edit your data in within the DataTable or DataView.
Thanks.

Antonio

"Antonio Ooi" <an*******@homail.com> wrote in message
news:eE**************@TK2MSFTNGP09.phx.gbl...
Hi,

I did this but failed:

dtbResultConfig.Rows(0).BeginEdit()
' Hit a 'Column 'FKTableName' is read only error at the line below
dtbResultConfig.Rows(0)("FKTableName") = "something"
dtbResultConfig.Rows(0).EndEdit()
dtbResultConfig.AcceptChanges()

Can anyone helps? Thank in advance!

Antonio

Jul 21 '05 #2

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

Similar topics

8
by: Mr. B | last post by:
I'm updating my current VB.et application. I currently reads about 6 tables from an MS Data base. I've created a new MDB file which combines the 6 tables into 1 table. I'm doing this because I...
16
by: D Witherspoon | last post by:
I am developing a Windows Forms application in VB.NET that will use .NET remoting to access the data tier classes. A very simple way I have come up with is by creating typed (.xsd) datasets. For...
14
by: Able | last post by:
Dear friends Dim myDataView as DataView = New DataView(dsData.Tables("tblCustomers")) myDataView.RowFilter = "City = 'London'" My question is how to loop through all rows in myDataView and...
1
by: Antonio Ooi | last post by:
Hi, I did this but failed: dtbResultConfig.Rows(0).BeginEdit() ' Hit a 'Column 'FKTableName' is read only error at the line below dtbResultConfig.Rows(0)("FKTableName") = "something"...
0
by: Henry | last post by:
My DataTabel has the following columns: org_id, org_name, parent_id DataTable dt = dsMyData.Tables; This next statement should create a data view with filter that results in one row ...
7
by: | last post by:
Hello, Does anyone have an idea on how I can filter the data in the gridview control that was returned by an sql query? I have a gridview that works fine when I populate it with data. Now I...
0
by: muthu | last post by:
Hi guys, Iam using a repeator control in my page.In wich i have dropdown list as the last column.I have a label in the first column.Now i have binded a datable to the repeator in the page load...
4
by: michael sorens | last post by:
I have successfully bound an XmlDocument to a DataGridView but all fields seem to be strings. I want to retrofit appropriate datatypes on some of the fields. Let me take this in 2 parts. Part...
0
by: bh | last post by:
I'm trying to edit data in a datagrid through a dropdown list with different id/text values. The problem comes in when I click the edit button & nothing appears to be happening. Did I do...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
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,...
0
isladogs
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...
0
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...
0
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...
0
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 ...

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.