Hi,
I'm new to RadGrid so sorry if this is a silly question.
I have an application where I am adding 'custom columns' to a DataGrid. My custom column is a class i have created that derives from TemplateField.
I now need to freeze the first column of the DataGrid so i am trying to migrate from a standard gridview to a RadGrid.
My question is how can I programmatically add TemplateFields to a RadGrid?
Example code from my application:
// custom class that represents a column in a GridView
public class CustomColumnTemplate : TemplateField{ // code removed for brevity }
// custom class that represents the ItemTemplate for CustomColumnTemplate
public class BaseSetOfValuesColumn : ITemplate{ // code removed for brevity }
// code to add custom columns to GridView
CustomColumnTemplate sovCol = new CustomColumnTemplate();
sovCol .ItemTemplate = new SetofValuesColumn();
myGridView.Columns.Add(sovCol);