Results 1 to 9 of 9

Thread: Cancelling new record in Data Grid

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2002
    Location
    10000 light years away
    Posts
    143

    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

  2. #2
    Lively Member
    Join Date
    Sep 2002
    Location
    South Africa
    Posts
    88
    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!!!

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jul 2002
    Location
    10000 light years away
    Posts
    143
    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

  4. #4
    Lively Member
    Join Date
    Sep 2002
    Location
    South Africa
    Posts
    88
    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!!!

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Jul 2002
    Location
    10000 light years away
    Posts
    143
    That works!! Thanks a lot!!!

  6. #6
    Lively Member
    Join Date
    Sep 2002
    Location
    South Africa
    Posts
    88
    No Problem
    High hopes go to all that looks down!!!

  7. #7
    Hyperactive Member tpfkanep's Avatar
    Join Date
    Jun 2002
    Location
    South Africa
    Posts
    272
    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.

  8. #8

    Thread Starter
    Addicted Member
    Join Date
    Jul 2002
    Location
    10000 light years away
    Posts
    143
    With recordset, .CancelUpdte should probably work

  9. #9
    Hyperactive Member tpfkanep's Avatar
    Join Date
    Jun 2002
    Location
    South Africa
    Posts
    272
    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
  •  



Click Here to Expand Forum to Full Width