subhankar02dey 0 Light Poster

I have a gridview in which I am fetching data from database along with the heading of the columns are coming from the database.
I want to make the header of the columns multiline, because when a long header name comes like "School Associative Names and Institutions", then it is taking a lot width of the gridview. I want to break the heading into multiple lines to adjust the width of the column.

I cannot use <itemTemplate><HeaderText> because, I need to make the gridview dynamic, it is used for different queries, so I cannot make the headers static, so I need to fetch the column header names from database watever written in queries.

How can I achieve this?
Pls help. Can css help here? If yes, then how?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.