Gridview Header Question

N

needin4mation

Hi, I have a gridview with products in it. But each product is the
same brand. So, say it is electronics:

sony tv
sony radio
sony music
.....

I only want to print out sony once and preferably at the top of the
table somewhere. So that I would end up with

sony
-------
radio
tv
music

Does anyone know how to do that? Thanks for any help.
 
O

OHM \( One Handed Man \)

Well you will need to do the following

1.) Hide the column with your brands in lets call it Products for example.
2.) Add a new column to your datatable before you bind it. And add an
expression something similar
to this ( Untested, but it should work )

calcCol.Expression = "Products.Replace("sony ","")

HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top