Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Flexgrid and subdataSheet question 2

Status
Not open for further replies.

jrajesh

Programmer
Aug 12, 2001
72
HK
Hi all,
I've a situation where I have to present data in a grid in the form of a data+subdatasheet.
E.G.) Customers and Orders
Given a Customer, the first column of the grid should hold the '+' symbol clicking on which all orders belonging to this customer are listed in the subsequent rows under this customer.. then the next customer etc.,

I do belive that subdatasheet in a flexgrid is needed here. But, Is this possible in VFP(7)? If yes, some example code please. If no, does anyone perhaps know of any alternate way to get this done?

Thanks and Best regards,
Rajesh
 
Hi Rajesh,

I would suggest two grids, one parent grid showing Customers and another child grid which will show detailed orders.

If fancy is rquired, you can show only the parent grid of customers in the grid with one + sign in a column and when this is clicked, make the child grid visible. Clicking a minus column in the child grid should reverse the situation.

:)

ramani :)
(Subramanian.G),FoxAcc, ramani_g@yahoo.com

 
Hi Ramani,
Thanks for your reply.
Fancy is what is required and real estate is a big problem in this particular scenario. Are subdatasheets impossible with VFP?
Thanks again and regards,
Rajesh
 
I do belive that subdatasheet in a flexgrid is needed here. But, Is this possible in VFP(7)? If yes, some example code please

I never try this, but there are two examples in VFUG ( Login (FREE join) and go to VFUG File Archive area. Then search for 'flexgrid'

Hope that helps

-- AirCon --
 
AirCon,
Thank you very much.
I've downloaded the 2 examples at VFUG.
Shall try them out and revert.
Regards,
Rajesh
 
AirCon,
Thanks for your reply.
The download helped me much.
Thanks again and a star for you.
Regards,
Rajesh
 
You are welcome Rajesh and thanks for the star :)

-- AirCon --
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top