I am trying to create columns dynamically in code for a RadGridView. So something like this:
var col =
IsReadOnly = hcol.IsReadOnly,
Header = hcol.Header,
Width = hcol.Width,
DataFormatString = hcol.DataFormatString
//AssociatedObject is a RadGridView
var columns = AssociatedObject.Columns;
I would like to also wire in code so that when the link is clicked it fires an event handler in code. Since it is being added this way I cannot easily set any kind of template or style that binds to any kind of command. I tried using AddHandler at various parts of GridView but cannot seem to it in the right spot. I am suprised the GridViewHyperlinkColumn object does not have an Event of any kind. Any way to make this work?
Thanks for any help.