B
Ben
Hi, I'm wondering how can i change the datagrid header text at runtime so
that it keeps the sorting enabled?
I can do;
e.Item.Cells[0].Text = "foo";
But then foo is the text of the table cell and not the underlying hyperlink
and as such, foo is no longer sortable.
I've tried things like...
((HyperLink)(e.Item.Cells[0].Controls[0]).Text = "foo";
But I get a null exception. In fact for some unknown reason,
e.Item.Cells[0].Controls.Count == 0!!!!
Can someone please show me what it is that I'm doing wrong here?
Thanks,
Ben
that it keeps the sorting enabled?
I can do;
e.Item.Cells[0].Text = "foo";
But then foo is the text of the table cell and not the underlying hyperlink
and as such, foo is no longer sortable.
I've tried things like...
((HyperLink)(e.Item.Cells[0].Controls[0]).Text = "foo";
But I get a null exception. In fact for some unknown reason,
e.Item.Cells[0].Controls.Count == 0!!!!
Can someone please show me what it is that I'm doing wrong here?
Thanks,
Ben