This is a migrated thread and some comments may be shown as answers.

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

1 Answer 55 Views
GridView
This is a migrated thread and some comments may be shown as answers.
fabrizio
Top achievements
Rank 1
Veteran
fabrizio asked on 22 Nov 2019, 09:55 AM
Hello everybody
I would like to test if Test if RadGridView.MasterTemplate.LoadFrom (datareader) is successful and show a message box
Thanks so much

1 Answer, 1 is accepted

Sort by
0
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 22 Nov 2019, 01:12 PM
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.

Regards,
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.
Tags
GridView
Asked by
fabrizio
Top achievements
Rank 1
Veteran
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or