×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

How do I Insert another Header in Grid
2

How do I Insert another Header in Grid

How do I Insert another Header in Grid

(OP)

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.

RE: How do I Insert another Header in Grid

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

RE: How do I Insert another Header in Grid

(OP)
cheers

RE: How do I Insert another Header in Grid

(OP)
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".

RE: How do I Insert another Header in Grid

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

RE: How do I Insert another Header in Grid

(OP)
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.


RE: How do I Insert another Header in Grid

(OP)
sorry, u refernce the cursor via recno()

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close