Click here to Skip to main content
14,491,656 members

Comments by ErrCode (Top 2 by date)

ErrCode 22-Oct-13 23:41pm View
From going to the link, the suggested solution will make your application depend on having Adobe Acrobat Reader installed for that code to work. If you are ok with making your application require Acrobat Reader be installed, then this is ok.
ErrCode 20-Jun-13 1:48am View
You should be able to access your Passport field like so:

private void resultDataGrid_MouseDoubleClick(object sender, MouseButtonEventArgs e)
var row = sender as DataGridRow;
if (row != null)
var item = row.DataContext as Person; // replace Person with your object type
if (item != null)
var passport = item.Passport;

PS: Upvoted the RowStyle solution because it seems more elegant IMO.