or
for (int i = 0; i < scheduleNotesList.Count; i++)
{
GridCommandCellElement cellElement = null;
GridViewRowInfo rowInfo = this.grdNotes.Rows.AddNew();
rowInfo.Cells[
"User"].Value = scheduleNotesList[i].AddedByUserIdSource.NameFirst + " " + scheduleNotesList[i].AddedByUserIdSource.NameLast;
rowInfo.Cells[
"PatientName"].Value = scheduleNotesList[i].PatientIdSource.FullName;
rowInfo.Cells[
"Note"].Value = scheduleNotesList[i].NotesDetail;
rowInfo.Cells[
"Note"].CellElement.ToolTipText = scheduleNotesList[i].NotesDetail; //This throes a NullReferenceException.
rowInfo.Cells[
"DateAdded"].Value = scheduleNotesList[i].ModifiedDate.ToShortDateString() + " " + scheduleNotesList[i].ModifiedDate.ToShortTimeString();
}




Private Sub RadGridView1_ValueChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadGridView1.ValueChanged
Dim dataRow As GridViewDataRowInfo = TryCast(Me.RadGridView1.CurrentRow, GridViewDataRowInfo)
If dataRow Is Nothing Then
Return
End If
Dim orderDetail As BO.OrderDetail = TryCast(dataRow.DataBoundItem, BO.OrderDetail)
Dim cbEditor As RadDropDownListEditor = TryCast(Me.RadGridView1.ActiveEditor, Telerik.WinControls.UI.RadDropDownListEditor)
If cbEditor IsNot Nothing Then
Dim editorElement As RadDropDownListEditorElement = TryCast(cbEditor.EditorElement, RadDropDownListEditorElement)
Dim prod As BO.ProductInfo = DirectCast(editorElement.SelectedItem.DataBoundItem, BO.ProductInfo)
orderDetail.ProductInfo = prod
orderDetail.UnitPrice = prod.UnitPrice
End If
End Sub