|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
|
I just wonder how to capture datagrid (which is created programmatically)
events. I say, Dim oGrid as new DataGrid I want to process some work on ItemDataBound event of oGrid. Not sure how to do it :( I appreciate your help, TIA, Holy I'm guessing you are using VB, but in C# you would be doing something like:
Grid.ItemDataBound += new DataGridItemEventHandler(this.Test); From there, you would define the event handler and do what you want in it... Simply put, you are just adding to the messaging of the event: public void Test(Object sender, DataGridItemEventArgs e) { //Do whatever } Thanks Paul DataGrid. Show quoteHide quote "Holysmoke" <Holysm***@discussions.microsoft.com> wrote in message news:F36ECA97-C793-4ADA-A5D0-F8F0A9E9C6F8@microsoft.com... >I just wonder how to capture datagrid (which is created programmatically) > events. > > I say, > > Dim oGrid as new DataGrid > > I want to process some work on ItemDataBound event of oGrid. Not sure how > to > do it :( > > I appreciate your help, > > TIA, > Holy
Master Pages and Cross-Page Form Information
Basic formatting for HTML text in ASP.NET 1.1 ? Listbox is overlapping the Textbox in Asp.net Is there a way to set onmouseover for a LinkButton in ASP.NET 2.0 ? timer functionality Localize control Broswer Compatibility Setting Hyperlink URL in Gridview file upload control - ASP2.0 Adding DataMember support to SqlDataSource |
|||||||||||||||||||||||