Can someone tell me how to write this in VB:
I tried using the converter and got:
But I get a syntax error on the first parenthesis of the try cast line. Thanks.
Sam
| void RadGrid1_ItemCreated(object sender, GridItemEventArgs e) |
| { |
| if (e.Item is GridNestedViewItem) |
| { |
| (e.Item.FindControl("InnerGridId") as RadGrid).NeedDataSource += new GridNeedDataSourceEventHandler(_Default_NeedDataSource); |
| } |
| } |
I tried using the converter and got:
| Private Sub gridActivities_ItemCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles gridActivities.ItemCreated |
| If TypeOf e.Item Is GridNestedViewItem Then |
| (TryCast(e.Item.FindControl("gridInvoices"), RadGrid)).NeedDataSource += New GridNeedDataSourceEventHandler(_Default_NeedDataSource) |
| End If |
| End Sub |
But I get a syntax error on the first parenthesis of the try cast line. Thanks.
Sam