How to set properties of repeater in code-behind

Martin Dobsicek asked on July 6, 2009 03:59

How to set properties of repeater in code-behind

Correct Answer

Martin Dobsicek answered on July 6, 2009 03:59

You need to call ReloadData method of repeater after setting its properties in code-behind. You can also set 'DataBindByDefault' property of repeater (on aspx template) to false so the repeater won't bind data by default and will bind them only after you call ReloadData method.

0 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.