473,495 Members | 2,058 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to put sorting arrow in List View header?

A simple way to do this is VB.NET is like this:

lvwIndex.Columns.Item(e.Column).Text = _
strColHeaderNOArrow & " " & ChrW(&H25B2)
I tried to do the same in C# like:

lvwProvinces.Columns[e.Column].Text =
lvwProvinces.Columns[e.Column].Text + " " + '\u25BC';

however, it displays a square instead of filled arrow.

Does anybody knows what I am doing wrong?

Any help will be appreciated
_dino_
Nov 17 '05 #1
4 5991
(&H25B2)
'\u25BC';
Maybe it's the wrong code?
Roger

however, it displays a square instead of filled arrow.

Does anybody knows what I am doing wrong?

Any help will be appreciated
_dino_

Nov 17 '05 #2
Check the Webdings and Windings font families. You can change the font used
for column headers to those to show special symbols. There might be other
easier ways to do that, but this technique should apply anywhere display of
different fonts is supported.

"Dino Buljubasic" wrote:
A simple way to do this is VB.NET is like this:

lvwIndex.Columns.Item(e.Column).Text = _
strColHeaderNOArrow & " " & ChrW(&H25B2)
I tried to do the same in C# like:

lvwProvinces.Columns[e.Column].Text =
lvwProvinces.Columns[e.Column].Text + " " + '\u25BC';

however, it displays a square instead of filled arrow.

Does anybody knows what I am doing wrong?

Any help will be appreciated
_dino_

Nov 17 '05 #3
no, it is not

On Fri, 21 Oct 2005 16:13:54 -0400, "Roger"
<ro***@pcsrevenuecontrol.com> wrote:
(&H25B2)
'\u25BC';
Maybe it's the wrong code?
Roger

however, it displays a square instead of filled arrow.

Does anybody knows what I am doing wrong?

Any help will be appreciated
_dino_


Nov 17 '05 #4
Thank you,

that was the problem. I was using Microsoft Sans Serif which does not
support unicode.

Arial does.

I appreciate your help.

_dino_

On Fri, 21 Oct 2005 13:25:09 -0700, "Cesario"
<Ce*****@discussions.microsoft.com> wrote:
Check the Webdings and Windings font families. You can change the font used
for column headers to those to show special symbols. There might be other
easier ways to do that, but this technique should apply anywhere display of
different fonts is supported.

"Dino Buljubasic" wrote:
A simple way to do this is VB.NET is like this:

lvwIndex.Columns.Item(e.Column).Text = _
strColHeaderNOArrow & " " & ChrW(&H25B2)
I tried to do the same in C# like:

lvwProvinces.Columns[e.Column].Text =
lvwProvinces.Columns[e.Column].Text + " " + '\u25BC';

however, it displays a square instead of filled arrow.

Does anybody knows what I am doing wrong?

Any help will be appreciated
_dino_


Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
2362
by: pmud | last post by:
Hi, I am using teh following code for sorting the data grid but it doesnt work. I have set the auto generate columns to false. & set the sort expression for each field as the anme of that...
2
10899
by: Dan | last post by:
Hi, I would like my list view controls column headers to display a "down arrow / triangle" to indicate by which column they are sorted. I don't want the ListView to actually sort any data as...
19
25422
by: Owen T. Soroke | last post by:
Using VB.NET I have a ListView with several columns. Two columns contain integer values, while the remaining contain string values. I am confused as to how I would provide functionality to...
3
1237
by: Sudheer Kareem | last post by:
Hello All, Can anybody tell me the how to sort a list view in vb.net,I have used a list view in my project and the columns of the list view is dynamically created.if i click on the header of any...
0
1030
by: Carl Tribble | last post by:
I have a datagrid in which I want to allow user to edit data and to sort the list by clicking a column header. When they have sorted the list, and subsequently make edits, the list automatically...
0
3211
by: Brian Henry | last post by:
Here is another virtual mode example for the .NET 2.0 framework while working with the list view. Since you can not access the items collection of the list view you need to do sorting another...
0
900
by: na | last post by:
I read several postings dealing with adding sorting images, but none of them has quite the same conditions like mine. I have a ASPX page that contains a datagrid that dispalys any data table in...
1
1786
by: John Rogers | last post by:
Does anyone have a snippet that shows how to put the sorting arrow in the listview header? Something simple and not any of the sorting code for sorting the data. Thanks John-
5
4901
by: jrod11 | last post by:
hi, I found a jquery html table sorting code i have implemented. I am trying to figure out how to edit how many colums there are, but every time i remove code that I think controls how many colums...
0
7120
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6991
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7196
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7373
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5456
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3088
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1405
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
286
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.