Forums

This topic is locked

Making DataGrid Editable - Please help !

Posted 07 Nov 2003 03:52:03
1
has voted
07 Nov 2003 03:52:03 Patrick Kok posted:
Hi,
I encounter a problem when I try to update the datagrid and the error display as below when I click the update button:
System.Exception: Control not found in DataGrid column: Status
at DreamweaverCtrls.DataSet.OnDataGridUpdate(Object Src, DataGridCommandEventArgs E).

I am updatading a column name call status with selection from a dropdownlist.

Aprreciate your help.

Replies

Replied 14 Nov 2003 12:46:24
14 Nov 2003 12:46:24 Nozomi Kugita replied:
Have you tried this?
www.macromedia.com/support/dreamweaver/ts/documents/adv_datagrid_edit.htm

If you have already done it, let me know. I'll look into this further.

- Noz
Replied 14 Nov 2003 13:15:23
14 Nov 2003 13:15:23 Nozomi Kugita replied:
I did reproduce the error you have mentioned.

You wanna also check if the correst ID for "Submit Control with ID:" and the correct data type are selected in the Free Form Clumn panel.

Any luck?

- Noz

Edited by - noz on 14 Nov 2003 13:16:18

Edited by - Noz on 15 Nov 2003 05:25:12
Replied 17 Nov 2003 02:58:01
17 Nov 2003 02:58:01 Patrick Kok replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
I did reproduce the error you have mentioned.

You wanna also check if the correst ID for "Submit Control with ID:" and the correct data type are selected in the Free Form Clumn panel.

Any luck?

- Noz

Edited by - noz on 14 Nov 2003 13:16:18

Edited by - Noz on 15 Nov 2003 05:25:12
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Replied 17 Nov 2003 03:04:27
17 Nov 2003 03:04:27 Patrick Kok replied:
Opps, click wrongly. Thnaks Noz. I manage to solve it. Basically, there a re 2 mistake that I do.
First : I did not include the primary key in my ms access database to the dataset.
Second: Under the edit,Update,Cancel Button column I did not choose the correct Primary key.

After I change it, it manage to perform what had been expected.

Reply to this topic