Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...