Jim,
Well, maybe I'm misunderstanding what you want to do because I'm not sure I understand what you mean by "put code in the BeforeGridBindFunction" from the form. You mean you want to dynamically, from the form, put code into that function on the UserControl? I don't think this is possible. Are you sure an event isn't the right way to go?
~~Bonnie
>no, this would not be an event it would be a function.
>
>Jim
>
>>Jim,
>>
>>Is this supposed to be an event? And you need an EventHandler on the form?
>>
>>~~Bonnie
>>
>>>All,
>>>
>>> I have a user control that is has a grid in it. The user control has a function called BeforeGridBind. I want to place the control on a form and from the form put code in the BeforeGridBindFunction. how do I do this?
>>>
>>>Jim