Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void lbAnswers_Format(object sender, ListControlConvertEventArgs e)
- {
- Question ques = e.ListItem as Question;
- if (ques != null)
- {
- var items = (sender as ListControl).DataSource as IList<Question>;
- if (items != null)
- e.Value = items.IndexOf(ques) + 1 + ". " + ques.Text;
- }
- }
Add Comment
Please, Sign In to add comment