all groups > dotnet general > october 2003 >
You're in the

dotnet general

group:

Custom Column for a DataGrid web form control


Custom Column for a DataGrid web form control CGuy
10/3/2003 7:03:51 PM
dotnet general:
Hi,

I have a datagrid that supports bi-directional sorting - i would like an
icon (like an up or down arrow depending on the sort order) to be displayed
in the datagrid column headers which changes dynamically when the column is
sorted. Any ideas on how to implement this?

If I have to create a Custom clumn for this (which derives from
BoundColumn class), how do I proceed with this - how do I make a column that
has a text and image?

Any help is greatly appreciated

CGuy

re: Custom Column for a DataGrid web form control Kirk
10/7/2003 8:40:46 AM
CGuy,

This might be a little easier.

use the HeaderImageURL property fo the column.

DataGrid1.Columns(0).HeaderImageUrl = "up.gif"

make sure you set the image before calling databind.

Kirk
[quoted text, click to view]
AddThis Social Bookmark Button