321.
Assuming a gridview datasource is :
List<Question> questions = quiznetSystem.LoadQuestions("csharp", "Descending");
grdQuestions.DataSource = questions
is the following statement valid:
protected void grdQuestions_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
Question question = (Question)e.Row.DataItem;
((Label)e.Row.FindControl("lblQuestion")).Text = question.QuestionDesc;
}
}
View Description
No description found.