Dynamically build a data entry form?

  • Thread starter Thread starter james
  • Start date Start date
J

james

Hi guys,

Does anyone know how to dynamically build a data entry form of the
format
Label: TextBox
Label2: TextBox2

I have a datatable with columns that define the types and names. I
guess what I want is to turn a DataGridView sideways and only allow
one row :). Any ideas?

Thanks,
James
 
Hi guys,

Does anyone know how to dynamically build a data entry form of the
format
Label: TextBox
Label2: TextBox2

I have a datatable with columns that define the types and names. I
guess what I want is to turn a DataGridView sideways and only allow
one row :). Any ideas?

Thanks,
James

Is there a particular part you are having trouble with?

Seems like you'd simply iterate through your rows and add labels and
textboxes to a form as you go. The only thing that would vary across
iterations is the location of the label, which could be determined
based on the previously added control and some offset of your
choosing.

--Rob W
 
Back
Top