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

Grid with different number of columns?

Status
Not open for further replies.

bernardmanning

Programmer
Oct 14, 2003
61
GB
Hi,

Is it possible to create a grid for a winform that has a different number of columns for a certain row type?

If my grid row has 5 columns in total but for certain rows depending on some price of criterai I only want to see 2 and for other rows I need to see all 5.

as an example if I had a grid that was showing vehicle types ;

Wheel 1 Wheel 2 Wheel 3 Wheel 4
Car Y Y Y Y
Motorbike Y Y - -
Tricycle Y Y Y -
Unicycle Y - - -
Person - - - -

Where we have a '-' I would want to hide the column cell as it's not applicable.

Anybody got any ideas?

Thanks, Bernard....


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top