Test if RadGridView.MasterTemplate.LoadFrom(datareader) is successful

2 posts, 1 answers
  1. fabrizio
    fabrizio avatar
    22 posts
    Member since:
    Aug 2010

    Posted 22 Nov 2019 Link to this post

    Hello everybody
    I would like to test if Test if RadGridView.MasterTemplate.LoadFrom (datareader) is successful and show a message box
    Thanks so much
  2. Answer
    Dess | Tech Support Engineer, Sr.
    Dess | Tech Support Engineer, Sr.  avatar
    3952 posts

    Posted 22 Nov 2019 Link to this post

    Hello, Fabrizio,

    There is no general approach for testing whether the DataReader is loaded successfully. However, you can put the method call in a try-catch block to handle any unexpected scenarios and if after the LoadFrom method call, the grid is filled with Columns and Rows, it would mean that the operation is successful. 

    I hope this information helps. If you need any further assistance please don't hesitate to contact me.

    Dess | Tech Support Engineer, Sr.
    Progress Telerik

    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top