locked
detail form read only RRS feed

  • Question

  • Hi All.

    I have two MainForms and one DetailForm. And that DetailForm I would like to open like editable form in one case and read only an other case in depend which MainForm call it. If is it possible how it to do?

    Thanks.

    Friday, October 1, 2010 9:17 PM

Answers

  • You can set the IsEnabled property of the detail window to false, depending on the call. That way, all the edits are disabled

    Bruno


    MVP Client Development - http://msmvps.com/blogs/bsonnino
    • Marked as answer by Min Zhu Friday, October 8, 2010 1:53 AM
    Friday, October 1, 2010 11:51 PM

All replies

  • You can set the IsEnabled property of the detail window to false, depending on the call. That way, all the edits are disabled

    Bruno


    MVP Client Development - http://msmvps.com/blogs/bsonnino
    • Marked as answer by Min Zhu Friday, October 8, 2010 1:53 AM
    Friday, October 1, 2010 11:51 PM
  • Hi Bruno.

    I will appreciate you if you have simple example with parent form that call read only child form.

    Thanks.

    Sunday, October 3, 2010 6:42 PM
  • private void CallDetailWindow(bool isReadOnly)
    {
      var detailWindow = new detailWindow();
      detailWindow.IsEnabled = !isReadOnly;
      detailWindow.Show();
    }

    Bruno


    MVP Client Development - http://msmvps.com/blogs/bsonnino
    Sunday, October 3, 2010 7:16 PM