[Download Code]
There are two ways to use a DataGrid column that does not implement the IDataGridColumn interface with the DataGridHelper control. If the source code is available, we can add the implementation for the IDataGridColumn interface. If the source code is not available, we could create a new class that is inherits from the custom DataGrid column class and implements the IDataGridColumn interface, as shown in the following example:
public class MyBoundColumn: ThirdPartyBoundColumn, IDataGridColumn
{
public void GetValues(TableCell cell, System.Collections.Hashtable col)
{
//Implement the code to extract the input here
}
}
In the next section, we will show the use of the custom columns through an example.