예제 #1
0
 private void lookUpAuthor_CustomDisplayText(object sender, CustomDisplayTextEventArgs e)
 {
     if (e.Value == null)
     {
         return;
     }
     LibraryDataSet.AuthorRow authorRow = lds.Author.FindById((int)e.Value);
     if (authorRow == null)
     {
         return;
     }
     e.DisplayText = authorRow.FirstName + " " + authorRow.LastName;
 }
예제 #2
0
        private void lookUpAuthor_CustomDisplayText(object sender, DevExpress.XtraEditors.Controls.CustomDisplayTextEventArgs e)
        {
            if (e.Value == null)
            {
                return;
            }
            LibraryDataSet.AuthorRow authorRow = libraryDS.Author.FindById((int)e.Value);
            if (authorRow == null)
            {
                return;
            }

            e.DisplayText = authorRow.FirstName + " " + authorRow.LastName;
        }