N
Nevyn Twyll
I have a datagrid on my webform.
I am programmatically adding columns to it and hooking it up to a dataset.
In my ItemDataBound(), I am adding some text and background coloring to the
Items, and to the Header as well.
This all works great!
Now, however, I want to be able to sort the grid by clicking on the column
headers.
I set the datagrid.allowsorting = true, wired up my SortCommand(), and it
basically works, EXCEPT it overwrites the formatting and extra text I put in
the header cells.
Is there some way I need to manually put in a hyperlink with a command in
the header? Can I make a HeaderTemplate in the aspx page that does that,
and still set the text and coloration manually?
Thanks for the help!
- Nevyn
I am programmatically adding columns to it and hooking it up to a dataset.
In my ItemDataBound(), I am adding some text and background coloring to the
Items, and to the Header as well.
This all works great!
Now, however, I want to be able to sort the grid by clicking on the column
headers.
I set the datagrid.allowsorting = true, wired up my SortCommand(), and it
basically works, EXCEPT it overwrites the formatting and extra text I put in
the header cells.
Is there some way I need to manually put in a hyperlink with a command in
the header? Can I make a HeaderTemplate in the aspx page that does that,
and still set the text and coloration manually?
Thanks for the help!
- Nevyn