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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I Insert another Header in Grid 2

Status
Not open for further replies.

itflash

Programmer
Joined
Jul 18, 2001
Messages
535
Location
GB

How do I insert another header into a grid?

I.e. so I have a column with a header, which in turn has another header and a text box control.

Thanks.
 
Are You saying you want to have a multirow header? If so VFP's grid cam't do it. you may be able to simulate the effect with some clever coding but basically it doesn't do it. You need a 3rd party ocx like ones from Sheridan or True DB Grid.
-Pete
 
Rick, do you know any easier way of putting a combo box into a grid by foreign key? I tried using a label as the main control and just update the caption of it, but the label does not display unless you click on the cell.
Weedz suggested parameter views and the Tasmanian example is a "fiddle".
 
In either case, make sure you set the column Sparse property to .F. - this will allow the updates to be shown "immediately" without the click. (Note: Since I don't remember explicitly using a label in a grid, you may have to do a Refresh() - just on the label not the whole form - on it just after you change the caption, but probably not.)

Rick
 
yeah, thanks, you set the column to sparse.

but how do i refernce what the user selected if I base my grid on a sql statement? Its not the same as a listbox, where you have the selected property.


 
sorry, u refernce the cursor via recno()
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top