How to put database, stuff


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: How to put database, stuff

  1. #1
    Thomas DeVol Guest

    How to put database, stuff


    How do i get a FlexGrid control to display just 2 fields,
    in my database
    Main
    TypeAD
    TimeWbiWM
    Source
    Amount
    Date
    PresetDollars
    TimePeriodStatic
    I have already made a query, , i know how to do so using a data control
    and i know how to do it without the control, but showing ALL the records
    of the database, I need to do this without a control, otherwise i would have
    to make 5 controls.

    My sql string is select * from qryDeductions
    So the flex grid control would Just display the fields in qrydeductions
    (source and amount where typead is deductions)


  2. #2
    Shahzad Guest

    Re: How to put database, stuff


    I think if you just specify those fields in your select statement, the grid
    would show only those fields then.
    Select Col1, Col1 from tablename.
    Then set the datasource of that grid to that sql statement.
    hope this helps.

    "Thomas DeVol" <XerosAqua@hotmail.com> wrote:
    >
    >How do i get a FlexGrid control to display just 2 fields,
    >in my database
    > Main
    > TypeAD
    > TimeWbiWM
    > Source
    > Amount
    > Date
    > PresetDollars
    > TimePeriodStatic
    >I have already made a query, , i know how to do so using a data control
    >and i know how to do it without the control, but showing ALL the records
    >of the database, I need to do this without a control, otherwise i would

    have
    >to make 5 controls.
    >
    >My sql string is select * from qryDeductions
    >So the flex grid control would Just display the fields in qrydeductions
    >(source and amount where typead is deductions)
    >



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