Hi pettrer,
By setting the text property of the cell, you effectively clear out the entire cell, including stuff used for sorting.
Instead, you should set the HeaderText property of each column. That sets the text, while it preserves stuff like the SortExpression.
Something like this should work:
EvenemangGridView.Columns(0).HeaderText = "Date"
EvenemangGridView.Columns(0).HeaderText = "Time"
Hope this helps,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of
ASP.NET 2.0 Instant Results and
Beginning Dreamweaver MX / MX 2004