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

User Control to same Page Multiple times 2

Status
Not open for further replies.

ISPrincess

Programmer
Feb 22, 2002
318
US
I have a need to create datagrids (same one/same type of data/3 cols) on a page multiple times (indefinetely).

I thought I would start with a user control page with the datagrid on it and then add it to the page each time i need to, but not sure this is the way to go.

As a side-note, each grid has a link button added (such as Delete).

I have seen some threads on creating datagrids dynamically, but they are pretty basic.

Can anyone guide me in the right direction please?

Thanks

PH
I was walking home one night and a guy hammering on a roof called me a paranoid little weirdo.
In morse code.
-Emo Phillips
 
I light of what you mentioned about placeholder and the fact that I cannot get the controls to fit in the form tags, I thought of something...

What if i create a Grid between the form tags on the main.aspx page, then programmatically add columns to it, can I add datagrids into datagrid columns?

What would work best is a table, where I could add new <td> etc.

PH
I was walking home one night and a guy hammering on a roof called me a paranoid little weirdo.
In morse code.
-Emo Phillips
 
you could also use a datalist, it might work. worth a shot, but that defeats the purpose of dynamically adding user controls.

Jason Meckley
Database Analyst
WITF
 
HA!

Ok - I have lost it. I am done. They are getting one long list with a filter.

:)

Thanks
Have a good evening.

PH
I was walking home one night and a guy hammering on a roof called me a paranoid little weirdo.
In morse code.
-Emo Phillips
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top