PC Review


Reply
Thread Tools Rate Thread

Custom Column for a DataGrid web form control

 
 
CGuy
Guest
Posts: n/a
 
      4th Oct 2003
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


 
Reply With Quote
 
 
 
 
Kirk
Guest
Posts: n/a
 
      7th Oct 2003
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
>-----Original Message-----
>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
>
>
>.
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Using Microsoft datagrid control 6.0 on custom form - licensing issue Ken Slovak - [MVP - Outlook] Microsoft Outlook VBA Programming 0 6th Feb 2004 08:54 PM
Custom Column for a DataGrid web form control CGuy Microsoft Dot NET Framework 1 6th Oct 2003 11:36 AM
Custom Column for a DataGrid web form control CGuy Microsoft ADO .NET 0 4th Oct 2003 12:03 AM
Custom Column for a DataGrid web form control CGuy Microsoft ASP .NET 0 4th Oct 2003 12:03 AM
Custom Column for a DataGrid web form control CGuy Microsoft C# .NET 0 4th Oct 2003 12:03 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:52 AM.