Have a RadListBox with OnItemDataBound going to this method:
The problem is that dataSourceRow is null. Why?
protected void listWho_ItemDataBound(object sender, RadListBoxItemEventArgs e) { if (!IsPostBack) { DataRowView dataSourceRow = e.Item.DataItem as DataRowView; string pkValue = dataSourceRow["pk"].ToString(); if (pkValue == "51" || pkValue == "53") { e.Item.Selected = true; } } }The problem is that dataSourceRow is null. Why?