I am trying to add tooltips to my unbound data grid... Can someone please let me know how to accomplish this through code? Below is how I am adding data to the grid.
Thanks for the help!
Craig
Thanks for the help!
Craig
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();
}