简体   繁体   中英

How Can i Show a list Vertically in ASP.net C# Using DataGrid Or DataList View?

I really don't know is it possible or not, any way i want to have a list in vertically view in ASP.net page. For Example the normal Grid/List is like this :

ASP.net中的普通DataGrid

But I want to Grid/List be something like this :

垂直数据网格

Sorry To use previous image just in rotate view, but i believe you experts can figure my mean out.

Attention:I do not want to text show vertically exactly like picture.i want the position of field be vertical like this example picture.

So Please Help me.and let me use your knowledges Thank evry one.

You can do with the help of CSS. Add a new CSS class aur include these in your current CSS class for gridview :

 .box_rotate {
 -moz-transform: rotate(270deg);  /* FF3.5+ */
   -o-transform: rotate(270deg);  /* Opera 10.5 */
  -webkit-transform: rotate(270deg);  /* Saf3.1+, Chrome */
             filter:  progid:DXImageTransform.Microsoft.BasicImage(rotation=270);  /* IE6,IE7 */
         -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=270)"; /* IE8 */
}

Set the Padding and margins after rotation.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM