0

I have added a button in datarepeater. If clicked once, it executes code and Button.text should change to Yes. Clicked again, it executes the opposite code and button.text should change to No. Codes are being executed (I am using flag variable) but Button.text is not changing.

How to change this text. I am simply trying Button.text="Yes" but probably I need to give some reference of the row no. too. How to do it?

Please advise. Thanks Furqan

Joel Coehoorn
  • 399,467
  • 113
  • 570
  • 794
Furqan Sehgal
  • 4,917
  • 33
  • 108
  • 167

1 Answers1

0

Please check this question: Handle Button Click in WinForm DataRepeater C# Power Pack

Also: the CurrentItem property has a property named Controls that allows you to access its child controls like this: CurrentItem.Controls["OKButton"]

Community
  • 1
  • 1
Emond
  • 50,210
  • 11
  • 84
  • 115