Adding rows to the data grid


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Adding rows to the data grid

  1. #1
    Join Date
    Oct 2005
    Posts
    95

    Adding rows to the data grid

    Hi

    I need to add rows in the middle of a data grid and save that back to the SQL table . How do I do that . I can add record at the begining of a data grid and at the end of a data grid but not in the middle of a data grid . Please help

    Thanks

  2. #2
    Join Date
    May 2005
    Location
    UK
    Posts
    278
    You can insert a new row in the rows collection of the data table and then bind it to the grid. Before binding set the grid.EditItemIndex = the inserted row index this would give a blank row where needed.
    Sri

Similar Threads

  1. Manipulation of DATA Grid
    By Mike Diamond in forum VB Classic
    Replies: 0
    Last Post: 05-16-2001, 12:39 PM
  2. Data Junction Announces XML Junction 7.51
    By Tim Frost in forum xml.announcements
    Replies: 0
    Last Post: 04-02-2001, 10:53 AM
  3. Data Grid Control - Drag and Drop a record
    By Tom in forum VB Classic
    Replies: 0
    Last Post: 12-21-2000, 09:03 AM
  4. Replies: 2
    Last Post: 09-14-2000, 04:31 AM
  5. Re: Data Grid property page "Layout" option
    By Dexter in forum VB Classic
    Replies: 0
    Last Post: 06-01-2000, 04:38 AM

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