Hi,
I have 2 user controls each of which has a seperate datagrid.
Im trying to get it so from each .vb file for each control i can disable both datagrid EditItemIndex using EditItemIndex = -1
So i have usercontrol1.vb and usercontrol2.vb
The problem im having is I can't reference the usercontrol2 datagrid from usercontrol1.
E.g. in usercontrol1.vb
usercontrol1.EditItemIndex = -1
usercontrol2.EditItemIndex = -1
This wont work because usercontrol2 datagrid is not referenced in usercontrol1.vb
Someone suggested raising an event at the page_load in a page.vb file but ive had little success..
Any suggestions?
I have 2 user controls each of which has a seperate datagrid.
Im trying to get it so from each .vb file for each control i can disable both datagrid EditItemIndex using EditItemIndex = -1
So i have usercontrol1.vb and usercontrol2.vb
The problem im having is I can't reference the usercontrol2 datagrid from usercontrol1.
E.g. in usercontrol1.vb
usercontrol1.EditItemIndex = -1
usercontrol2.EditItemIndex = -1
This wont work because usercontrol2 datagrid is not referenced in usercontrol1.vb
Someone suggested raising an event at the page_load in a page.vb file but ive had little success..
Any suggestions?