DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: Help: Preventing simultaneous deleting data in datagrid

  1. #1
    Join Date
    Jan 2007
    Posts
    15

    Help: Preventing simultaneous deleting data in datagrid

    May anyone help me in preventing simultaneous deletion of data from datagrid?

    Another question:

    How can I get the Sum total of a certain field in a recordset using ADODB?

    Thanks in advance!

  2. #2
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,663
    Quote Originally Posted by craver06
    May anyone help me in preventing simultaneous deletion of data from datagrid?
    I don't understand what you mean by this. Could you please provide some more details?
    Quote Originally Posted by craver06
    How can I get the Sum total of a certain field in a recordset using ADODB?
    Code:
    SELECT SUM(fieldname) As fieldnametotal

  3. #3
    Join Date
    Jan 2007
    Posts
    15
    I need to prevent highlighting rows in datagrid, so when pressed the delete

    button It will only delete one.

    Regarding in

    SELECT SUM(fieldname) As fieldnametotal

    can you give sample program which uses it.

    Thanks for replying!


  4. #4
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,663
    DataGrids are bound controls. This means that whatever the underlaying datasource is, is what it will display.

    If you need to delete something from it, delete it from the db table to which it is bound, and then refresh the grid.

    Sample program? No sample program necessary for the execution of one thing. You have database. You have a field in that database. You have a connection to the database from your program.

    As far as the query is concerned, you are using ADO, correct. Are you using bound controls to do your connection as well as your display (I hope not - bound controls are evil)

Similar Threads

  1. Why I can't save data in data base?
    By Kurt in forum Java
    Replies: 7
    Last Post: 10-08-2006, 08:59 AM
  2. Preventing duplicate data?
    By chupacabra in forum VB Classic
    Replies: 5
    Last Post: 08-09-2006, 04:20 PM
  3. Extracting data from DataGrid
    By mmingfeilam in forum ASP.NET
    Replies: 1
    Last Post: 03-29-2006, 06:37 PM
  4. Export to excel data from Datagrid rows
    By sunilmskr in forum .NET
    Replies: 0
    Last Post: 06-13-2005, 02:40 AM
  5. Replies: 0
    Last Post: 02-22-2001, 01:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center