protected void gridObj_ItemCreated(object sender, DataGridItemEventArgs e)
{
switch (e.Item.ItemType)
{
case ListItemType.Header:
DataGridItem headerItem = new DataGridItem(0, 0, ListItemType.Header);
TableCell tc;
tc = new TableCell();
tc.Text = "Mian Column";
tc.Width = Unit.Pixel(220);
tc.ColumnSpan = 3;
headerItem.Cells.Add(tc);
gridObj.Controls[0].Controls.AddAt(0, headerItem);
break;
case ListItemType.Item:
break;
case ListItemType.SelectedItem:
case ListItemType.AlternatingItem:
break;
}
}