473,323 Members | 1,547 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,323 software developers and data experts.

program. edit of DataGrid

I need to update my DataBase grid ( not on the users mouse
but external process states ).

How do I reference the cell to update ? Do I work with the
dataTable, do I iterate through a Column Collection or
what ? Please provide code snippet.

Thanks.
Nov 20 '05 #1
3 897
On Sat, 18 Oct 2003 09:27:33 -0700, "andrewcw"
<an*******@discussions.microsoft.com> wrote:
I need to update my DataBase grid ( not on the users mouse
but external process states ).

How do I reference the cell to update ? Do I work with the
dataTable, do I iterate through a Column Collection or
what ? Please provide code snippet.


You want to update the grid yourself?
oMyGrid.Item( row , column )

If you use a DataTable, DataSet (or a bog standard collection for that
matter) you should change the underlying data structure, and
rebind/update/refresh as necessary.

Nov 20 '05 #2
My DataGrid QCDG ( at least in C# ) in WINFORM has no
item property to access. I do have a DataTable that's
unbound and loaded but I also cannot get to it by
qcLoaderTable.Rows(0)("IMAGE")="FAIL"; //as in ASP.NET

because I get this error. Ideas ??
... \frmQCLoader.cs(289): 'System.Data.DataTable.Rows'
denotes a 'property' where a 'method' was expected

-----Original Message-----
On Sat, 18 Oct 2003 09:27:33 -0700, "andrewcw"
<an*******@discussions.microsoft.com> wrote:
I need to update my DataBase grid ( not on the users mousebut external process states ).

How do I reference the cell to update ? Do I work with thedataTable, do I iterate through a Column Collection or
what ? Please provide code snippet.
You want to update the grid yourself?
oMyGrid.Item( row , column )

If you use a DataTable, DataSet (or a bog standard

collection for thatmatter) you should change the underlying data structure, andrebind/update/refresh as necessary.

.

Nov 20 '05 #3
On Sat, 18 Oct 2003 10:57:15 -0700, "andrewcw"
<an*******@discussions.microsoft.com> wrote:
My DataGrid QCDG ( at least in C# ) in WINFORM has no
item property to access. I do have a DataTable that's
unbound and loaded but I also cannot get to it by
qcLoaderTable.Rows(0)("IMAGE")="FAIL"; //as in ASP.NET

because I get this error. Ideas ??
.. \frmQCLoader.cs(289): 'System.Data.DataTable.Rows'
denotes a 'property' where a 'method' was expected
I am at a bit of a loss here... By "QCDG", are you referring to a
specialised object? A wrapper, perhaps?
I've seen something like that error before: it was due to improperly
overloading a function as a property (or vice versa).

hth

-----Original Message-----
On Sat, 18 Oct 2003 09:27:33 -0700, "andrewcw"
<an*******@discussions.microsoft.com> wrote:
I need to update my DataBase grid ( not on the usersmousebut external process states ).

How do I reference the cell to update ? Do I work withthedataTable, do I iterate through a Column Collection or
what ? Please provide code snippet.


You want to update the grid yourself?
oMyGrid.Item( row , column )

If you use a DataTable, DataSet (or a bog standard

collection for that
matter) you should change the underlying data structure,

and
rebind/update/refresh as necessary.

.


Nov 20 '05 #4

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

Similar topics

6
by: Tamir Khason | last post by:
How to prevent the selected cell from being editable (visual) at DataGrid? Once click on cell (even readonly) there are cursor inside it and select text appears. How to prevent it Thankx
0
by: San Diego Guy | last post by:
Hi all! I have Datagrid. Within that datagrid I have a drop down list that I set up some values in (a "collection") I set up an edit command column on the datagrid and wrote simple code to get...
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,...
0
by: Steve Kallal | last post by:
I have a DataGrid with an EditCommandColumn column set to a type of PushButton. I want to set set CssClass on these buttons and cannot without using code-behind code on the ItemDataBound event. The...
3
by: Leo | last post by:
I have a datagrid with the first column as a Edit,Update,Cancel button column. The other 5 columns are template columns. When I click the Edit button in IE6 the row correctly displays the...
3
by: Tim::.. | last post by:
Can someone please tell me how I go about preselecting an item in a drop drown list when I click the Edit Command in a datagrid? I have tried the following but it doesn't work for me! I would...
3
by: Schultz | last post by:
is there an easy to follow, source code in one document, article that explains how to create an edit all DataGrid control? and, I have a DataGrid setup where the client enters information for...
1
by: David Sagenaut | last post by:
Can I set a whole datagrid in edit mode, like a table? I can edit the data in the datagrid. After done, I can click the save button to save the data into a datasousce. I don't want to used the...
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: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
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...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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: 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: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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.