Hello
Using the Event Line Create Row in one of the cells in the grid code is written Grid View then called event data taken from the database. If the number of records about the event call will not be more than 25
1 Answer, 1 is accepted
0
Hristo
Telerik team
answered on 22 May 2017, 07:38 AM
Hello ,
Thank you for writing.
The CreateRow event is exposed to allow the creation of custom rows and it should not be used for performing database queries. Furthermore, RadGridView is virtualized and the event will be raised whenever a new visual row element needs to be created. Additional information on the UI virtualization is available here: http://docs.telerik.com/devtools/winforms/gridview/fundamentals/ui-virtualization.
Please consider moving the logic for accessing the database elsewhere. If it fits your local setup you can consider handling the Load event of the form.
I hope this helps. Should you have further questions please do not hesitate to write back.