Results 1 to 2 of 2

Thread: [RESOLVED] Inserting data using DataGrid control

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2005
    Posts
    36

    Resolved [RESOLVED] Inserting data using DataGrid control

    On a form, I have a combo box and a data grid.

    Based on user's select in the combo box, data grid displays certain data which is supplied by stored procedure.

    ComboBox On_LostFocus()
    dataGrid.dataSource = rsStoredProc
    end ComboBoxSub

    Thats how my dataGrid gets it data. I have set the AllowUpdates, AllowInsert, AllowDelete properties of the dataGrid to TRUE. But still there is no additional row on the dataGrid for the user to add data, neither can the user edit or delete.

    What is wrong here. Please suggest.

    thank you in advance!
    Ankeet

  2. #2
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: Inserting data using DataGrid control

    Quote Originally Posted by ankeet1
    ... data grid displays certain data which is supplied by stored procedure. ...
    Your stored proc might not return updateable recordset.

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