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!

VB.Net datarepeater control 1

Status
Not open for further replies.

Ajb2528

Technical User
Feb 22, 2002
270
GB
Hi!

I am having trouble with the above control...

What I am trying to do is retrieve the value from one of the bound textboxes in the datarepeater and I just cannot find a way of achieving this...

Basically, the repater contains 4 bound text boxes and a command button. When the user clicks on the command button a process is invoked for that particular row. The last bound textbox contains the ID to be processed and it is this that I cannot retrieve.

Any help on this would be appreciated!

Regards,

Alan
 

It should be something like this:

DataRepeater1.CurrentItem.Controls("TextBox1").Text

I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson

Arrrr, mateys! Ye needs ta be preparin' yerselves fer Talk Like a Pirate Day!
 
Hi jebenson!

Thanks for the reply! It worked a treat! I have given you a star....

On another subject, do you know how I can change the datasource for a datarepeater? I have one form with three datasources and I want to change the datasource for the datarepeater in code when a user selects what data to see via a button. At the moment, the only way I could get around it was by using three datarepeater controls each bound to one of the datasources.

Regards,

Alan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top