Last post Dec 03, 2015 11:19 AM by Ashim Chatterjee
Nov 25, 2015 06:57 AM|maradana26|LINK
i created one user control for gridview, in that i added pagesize(dropdownlist),page index(dropdownlist),next and previous links. in oninit event create objects for all controls and added events it's working fine when i use this as control other than this
if crate object for customgrid then oninit event not fired please tell me which event is suitable for creating objects of controls and added events to that controls.
my code like below
public class CustomPager : GridView
protected override void OnInit(EventArgs e)
for (int i = 10; i <= 100; i += 10)
Dec 03, 2015 11:19 AM|Ashim Chatterjee|LINK
According to the MSDN documentation :
init event is raised
after all controls have been initialized.Perhaps you should try the same in preinit event.