Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
660
What I must to do for receiving RecordPresenter, that is not null?
posted
  1. I have:
    1. XamDataGrid = xdg.
    2. DataSource for xdg id DataView (DataView.Count > 0);
    2. every DataRecord in xdg is DataRowView (DataRecord record !=null);

          DataRecord record = dg.FieldLayouts[0].DataPresenter.Records[0] as DataRecord;

          Record rec1 = record.DataPresenter.Records[0] as Record;
          Record rec2 = record as Record;

I try to receive RecordPresenter of one DataRecord
       
        RecordPresenter rp1 = DataRecordPresenter.FromRecord(rec1);
        RecordPresenter rp2 = RecordPresenter.FromRecord(rec1);

        RecordPresenter rp3 = DataRecordPresenter.FromRecord(rec2);
        RecordPresenter rp4 = RecordPresenter.FromRecord(rec2);

REsult: rp1 = rp2 = rp3 = rp4 = null (always)

What I must to do for receiving RecordPresenter, that is not null?

Thanks for help.

Parents Reply Children
No Data