Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8287357
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T12:00:48+00:00 2026-06-08T12:00:48+00:00

I am trying to set the column widths of a listview. I have reviewed

  • 0

I am trying to set the column widths of a listview.

I have reviewed tons of links and not one I have found describes setting column width of a listview inline. WITHOUT a CSS file. Scowered the MSDN on line doc which says to use either CSS or inline, but I can’t seem to get the inline working. Even the example shows fixed col widths….

http://msdn.microsoft.com/en-us/library/bb398790.aspx#ApplyingStylesToListViewItems

I have added Width property to labels in the itemTemplate and Alternate template, tried settings in LayoutTemplate.

Nothing seems to work. Can someone point me to a tutorial or provide a sample of coding to adjust column width for the Listview WEB Control, not Windows listview control.

THANK YOU!!!!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T12:00:49+00:00Added an answer on June 8, 2026 at 12:00 pm

    What I did was defined another table in my template. So, lets say I only wanted to change the size of the EditItemTemplate fields and my LayoutTemplate has 9 s.
    In the EditItemTemplate I did:

            <EditItemTemplate>
      <tr>
        <td colspan="9">
          <table>
            <tr>
               <td>
                  <!-- any controls you want... -->
                  <asp:TextBox ID="blah" runat="server" Text="'<%# Bind("blah") %>'                                          Width="whateverpx"/>
    

    … close tags…
    The idea is to make your template layout however you want and set widths on your asp: controls.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to set the width of table column to a minimum value. The
I am trying to set the top gridview's column's width to the body's column
So I have 3 div columns (33% width each) and I'm trying to set
I am trying to set the column width to zero in a GWT-GRID in
I am trying to set column width to the length of the column name.
I'm using SlickGrid with DataView and I'm trying to set a default sort column
Trying to set it so if a certain condition is met then one of
Trying to set a flag in the post to allow processing or not. The
I'm trying to use this layout with two 50% column width instead. But it
I'm trying to make a CSS fixed width, two column, header and footer layout.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.