Thought I would get some insight before trying this as I'm sure someone out there may have done this before and be aware of the pro's and con's and the best way to do this.
I am looking to create, on the fly, a certain number of repeating or replicated field rows.
The number of rows would be based off of a field in a db with a row structure similar to the following (dd = drop down, lb = label and tx = text entry):
ddItem1 lbAO1 ddA1 lbDO1 ddD1 ddS1 txC1
There could be from 1 to possibly 100 rows that would be filled in from the db with the contents being based off of which record is selected from the main table and then populated partially from the main table and from sub tables as well. Upon text entry or drop down selection the record would be saved back to the db.
The dd's would be populated from sub tables.
ddItem would index off of an existing value.
ddA/ddD/ddS would default to the first index (blank) value.
So .. here's the questions:
1- I've looked at panels and placing controls on them and the editable table option. At this point, I am unsure which would probably be the easiest to pursue considering that I'm not sure how easy it is to replicate a set or row of controls and have it scrollable if the panel is used, or if the edit table option would suffice for my needs.
2- combobox says: 'ComboBox does not support the Text property and the user cannot write anything inside a ComboBox.' Yet, I can enter text in the field, which I don't want allow, just want a selection to be made. How can this be done? Or is there a drop down only option, list box won't work.
3- Is there a way to have a table hi-light the entire row when the user clicks on it instead of just the selected cell?
4- Is it possible to have a checkbox in the editable table? If not, I can simply show an 'X', just not as appealing.
If anyone has done something along these lines, I'd be grateful for any insight.
Mostly, I would hate to waste time re-creating the wheel if it already exists, grin.
Regards and Thanks
I am looking to create, on the fly, a certain number of repeating or replicated field rows.
The number of rows would be based off of a field in a db with a row structure similar to the following (dd = drop down, lb = label and tx = text entry):
ddItem1 lbAO1 ddA1 lbDO1 ddD1 ddS1 txC1
There could be from 1 to possibly 100 rows that would be filled in from the db with the contents being based off of which record is selected from the main table and then populated partially from the main table and from sub tables as well. Upon text entry or drop down selection the record would be saved back to the db.
The dd's would be populated from sub tables.
ddItem would index off of an existing value.
ddA/ddD/ddS would default to the first index (blank) value.
So .. here's the questions:
1- I've looked at panels and placing controls on them and the editable table option. At this point, I am unsure which would probably be the easiest to pursue considering that I'm not sure how easy it is to replicate a set or row of controls and have it scrollable if the panel is used, or if the edit table option would suffice for my needs.
2- combobox says: 'ComboBox does not support the Text property and the user cannot write anything inside a ComboBox.' Yet, I can enter text in the field, which I don't want allow, just want a selection to be made. How can this be done? Or is there a drop down only option, list box won't work.
3- Is there a way to have a table hi-light the entire row when the user clicks on it instead of just the selected cell?
4- Is it possible to have a checkbox in the editable table? If not, I can simply show an 'X', just not as appealing.
If anyone has done something along these lines, I'd be grateful for any insight.
Mostly, I would hate to waste time re-creating the wheel if it already exists, grin.
Regards and Thanks