I have created a user control in ASP.Net that embeds a datagrid so as to extend lots of features, the problem is that I cant set focus to the datagrid within the user control on page load. I've tried with some javascript snippets but this would not work, it would give me a javascript error stating that the control name I have used in my focus script is null or does not exists(even though I have used the id generated by .Net i.e: MyUserControlName_UserControlDatagridName). Anybody has an idea how to work around this.

all help appreciated, thanx