Better grid examples


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Better grid examples

  1. #1
    grenston Guest

    Better grid examples


    Hullo,
    In the MSDN samples, all examples related to grid are doing work to display
    existing records. They are too simple to do useful works.
    Now that can anybody show one step forward how to add a new record to the
    grid, in the way in Tastrade order entry form?
    That is, to input one record for invoice-line, one can right click for the
    popup menu to appear, then select add item, then can click to choose from
    the combo a suitable product, then everything for a new invoice-line is done?
    Thank you very much for your attention.

  2. #2
    jarrett Guest

    Re: Better grid examples


    "grenston" <grenston@hongkong.com> wrote:
    >
    >Hullo,
    >In the MSDN samples, all examples related to grid are doing work to display
    >existing records. They are too simple to do useful works.
    >Now that can anybody show one step forward how to add a new record to the
    >grid, in the way in Tastrade order entry form?
    >That is, to input one record for invoice-line, one can right click for the
    >popup menu to appear, then select add item, then can click to choose from
    >the combo a suitable product, then everything for a new invoice-line is

    done?
    >Thank you very much for your attention.


    I am not sure I understand what you are looking for, but grids do have
    a property called allowaddnew. Set that to true and you can enter new records,
    by just hitting the down arrow. You can also append blank to the table you
    are reading from and that will also create a new record. It's a good idea
    to use a cursor to do this.


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