Hi,
I am creating a grid programmatically on the OnInit handler so that my template columns are captured in the ViewState. I am also trying to incorporate 'google-like' filtering, so I need to access the OnColumnCreating handler in the codebehind. However, when I try to add a handler to it, I am told that I cannot do it as OnColumnCreating is protected.
My code is as follows, fairly simple:
Can anyone help?
Many thanks!
I am creating a grid programmatically on the OnInit handler so that my template columns are captured in the ViewState. I am also trying to incorporate 'google-like' filtering, so I need to access the OnColumnCreating handler in the codebehind. However, when I try to add a handler to it, I am told that I cannot do it as OnColumnCreating is protected.
My code is as follows, fairly simple:
Protected Sub Page_Init(ByVal s As Object, ByVal e As System.EventArgs) Handles Me.Init
Dim rg As New RadGrid
rg.AutoGenerateColumns = False
rg.GridLines = GridLines.None
rg.AllowPaging = True
rg.AllowSorting = True
rg.AllowFilteringByColumn = True
rg.ShowStatusBar = True
rg.CssClass = "RadGrid"
rg.Skin = "WebBlue"
rg.Width = "880"
rg.GroupingSettings.CaseSensitive = False
AddHandler rg.OnColumnCreating, AddressOf rg_ColumnCreating
End Sub
Can anyone help?
Many thanks!