Page 1 of 1

Building Forms on the fly

Posted: Wed Apr 02, 2014 1:03 pm
by boyddt_co
I have a project that I'm working on whose output is going to vary depending on the operator using it. Basically it is a table with 7 columns and x number of rows - with the rows being dependent on the number of machines in a cell. The row count could be anywhere from 1 to 12. As I query data from SQL I'd like to custom build the form at run-time so that I'm only showing a table big enough to hold the data.

If I can't have the form built dynamically, can I have multiple forms, one for each of the twelve possibilities and call the form based on the number of machines in the cell?

I'm including a screen shot of a mock-up in Excel to better illustrate my desired outcome. This mock-up would be all the machines in one cell.

Thanx in advance,

David

Re: Building Forms on the fly

Posted: Wed Apr 02, 2014 1:40 pm
by Alexander Riedel
Use a grid control and add the rows and columns needed.
But since this is not really a product support question but a "How do I create that script question" please post that question in the PowerShell or PowerShell GUI forum.

Re: Building Forms on the fly

Posted: Wed Apr 02, 2014 2:44 pm
by boyddt_co
Will do, thanx.