473,406 Members | 2,352 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,406 software developers and data experts.

DataGrid Edit issue

I have a DataGrid called QCDG. ALthough I am using C# I
think object exposure is identical & there's a lot of grid
expertise in the vb.net group. I am using WINFORM.

To change the a cell's data I did this:
[ but although I change the DataRow's element
the change is NOT reflected in the Table. I belive I am
making this much more difficult.

Thanks for you help !!!

QCDG.DataSource=qcLoaderTable;
System.Data.DataRow myDR=qcLoaderTable.Rows[0];
object[] oArray= myDR.ItemArray;
oArray[6]="FAIL";
string celval = (string)oArray[6];
QCDG.Refresh(); // see if the change is in the datatable
System.Data.DataRow myDRUP=qcLoaderTable.Rows[0];
oArray= myDRUP.ItemArray;
celval = (string)oArray[6]; // IT IS NOT !! ?? WHY ?
Nov 20 '05 #1
1 1324
I think I solved my issue. Very simply :

QCDG[0,6]="FAIL"; where 0 = row, 6 = column;

Thanks
-----Original Message-----
I have a DataGrid called QCDG. ALthough I am using C# I
think object exposure is identical & there's a lot of gridexpertise in the vb.net group. I am using WINFORM.

To change the a cell's data I did this:
[ but although I change the DataRow's element
the change is NOT reflected in the Table. I belive I am
making this much more difficult.

Thanks for you help !!!

QCDG.DataSource=qcLoaderTable;
System.Data.DataRow myDR=qcLoaderTable.Rows[0];
object[] oArray= myDR.ItemArray;
oArray[6]="FAIL";
string celval = (string)oArray[6];
QCDG.Refresh(); // see if the change is in the datatable
System.Data.DataRow myDRUP=qcLoaderTable.Rows[0];
oArray= myDRUP.ItemArray;
celval = (string)oArray[6]; // IT IS NOT !! ?? WHY ?
.

Nov 20 '05 #2

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

Similar topics

3
by: Diego TERCERO | last post by:
Hi... I'm working on a tool for editing text resources for a family of software product my company produces. These text resources are found in a SQL Server database, in a table called...
2
by: Sky | last post by:
Hello: Another question about trying to wring functionality from a DataGrid... Have a DB table of "Contacts" -- 14 or more fields per record Show in datagrid -- but only 5 columns (First,Last,...
5
by: Chris | last post by:
Based upon some prevoius postings on what to do for adding a 'add' row to a datagrid I utilize the footer to create the 'add' row. The only issue is that I have it sharing the 'UpDate_Command' and...
9
by: rn5a | last post by:
A Form has a DataGrid which displays records from a SQL Server 2005 DB table. Users can modify the records using this DataGrid for which I am using EditCommandColumn in the DataGrid. This is the...
8
by: =?Utf-8?B?bWlrZWc=?= | last post by:
Hi, I am building a small Help Desk application for my company and need to be able to edit "open" help desk issues. I use a simple datagrid to display each issue (6 per page) , with an Edit...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
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,...
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
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...
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...

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.