|
-
Nov 1st, 2002, 04:56 AM
#1
Thread Starter
Addicted Member
Cancelling new record in Data Grid
Hi,
I'm using a data grid to display data. If i want to cancel a new record, how do i do this?
Thanks in advance
-
Nov 1st, 2002, 04:59 AM
#2
Lively Member
Are you using the grid simply for displaying data, or are you using it to edit and add records as well?
High hopes go to all that looks down!!!
-
Nov 1st, 2002, 05:02 AM
#3
Thread Starter
Addicted Member
Option to edit is given using textboxes which are bound to the same data control. This works fine... but i'm not able to cancel after AddNew
-
Nov 1st, 2002, 05:06 AM
#4
Lively Member
Ok If you are adding a new record and you want to cancel, Just refresh your ado data control. If you click on your grid at the section where you add a new record, adjust set your settings in your Datagrid's properties to Not to allow add new
High hopes go to all that looks down!!!
-
Nov 1st, 2002, 05:10 AM
#5
Thread Starter
Addicted Member
That works!! Thanks a lot!!!
-
Nov 1st, 2002, 05:12 AM
#6
Lively Member
High hopes go to all that looks down!!!
-
Nov 1st, 2002, 05:44 AM
#7
Hyperactive Member
Will this only work with adodc datacontrol???
I tried doing something similar but with coded recordset and datagrid.
I just could not cancel an .AddNew.
-
Nov 1st, 2002, 05:49 AM
#8
Thread Starter
Addicted Member
With recordset, .CancelUpdte should probably work
-
Nov 1st, 2002, 06:00 AM
#9
Hyperactive Member
rs.CancelUpdate does not work.
I am busy recoding using FlexGrid.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|