Y
Yama
Hi,
When trying to dynamically add the header column name in my datagrid I lose
the sorting abilities.
private void grd_ItemDataBound(object sender, DataGridItemEventArgs e)
{
ListItemType itemType = e.Item.ItemType;
if (e.Item.ItemType == ListItemType.Header )
{
e.Item.Cells[2].Text = "Employee"
e.Item.Cells[3].Text = "Company Name"
}
}
How can I give it back the sorting ability?
Thanks,
Yama
When trying to dynamically add the header column name in my datagrid I lose
the sorting abilities.
private void grd_ItemDataBound(object sender, DataGridItemEventArgs e)
{
ListItemType itemType = e.Item.ItemType;
if (e.Item.ItemType == ListItemType.Header )
{
e.Item.Cells[2].Text = "Employee"
e.Item.Cells[3].Text = "Company Name"
}
}
How can I give it back the sorting ability?
Thanks,
Yama