Home » Sharepoint

How can I change the width of a column in a list of sharepoint 2010 ?

How do I change the column width in sharepoint 2010 so the data displays properly in standard view?

I open the list View in sharepoint designer,and change the width of the <td> ,but ,when I preview ,the column width don't change. what should I do?


4 Answers Found


Answer 1

Could you please let me know why do you want to adjust the column  width. In SharePoint 2010 list  standard view, it is adjusted automatically according to your text width. I typed in a long sentence, the column is expanded so that the whole sentence is displayed.


Answer 2

I have two columns,Both of they have a long content, but one is very wide, another one is very narrow,so I want to adjust it . can you give me some suggestion.



Answer 3

While they may auto adjust to what it thinks is a correct width, far too often it allocates way too much room and that causes lists with 4 columns to be much longer than they need to be and without the ability to adjust them, lists look strange. http://twitpic.com/23ro09/full is an example of the first column  having been allocated too much room.


Answer 4

SharePoint Designer will allow you to customize column  widths by customizing the XSLT.


Hi All,


I need to fix the heading width of my sharepoint list in allitems.aspx here my problem is i need to decrease the width and want to wrap the heading text.


so the current list looks like the below

this is heading folks


now i need to wrap the heading and decrease the width of the column like the below one


this is heading folks


I need to upload a file to a Sharepoint Document Library and am able to do so with the Client Object Model. I need to set custom columns for that file in the same Document Library, but can't figure out how to do it.

Can someone please help!?!?!?


How do I change the column width in sharepoint 2010 so the data displays properly in standard view?

I open the list View in sharepoint designer,and change the width of the <td> ,but ,when I preview ,the column width don't change. what should I do?


Hi everyone,

I've googled quite a lot, but couldn't find a solution - in the end this forum always helped me out the best! :)

This is my problem: I've got my Gridview gv_1, it gets its data from the code behind through a DataSet, gets generated like it should be, and assigns it's column-width to the longest entry in the datarow. Now I've got my Gridview gv_2, which has other entries and column widhts (gets filled the same way) - what I want to do is to change the width of the columns that the gridviews have the same overall width.

I've uploaded a screenshot: http://stepdown.elementfx.com/image16.jpg

What I've already tried is playing around with the GridView.HeaderRow.Cells[0].Width-Property, but when I debug it (after it's DataBound) I've got no values, meaning the values are "0.0" etc. The try to assign a value also didnt work (not directly for Width and not for Width.Value).

The next problem I could encounter is that my second GridView has no visible HeaderRow - and as far as I've googled people always somehow set the width of the column - but I'm not even that far yet. ;)

So the perfect solution (working in my head at least) would be to get the width of each column from the 2 gridviews, pick the larger one, and assign this width to both gridviews. I want to avoid fixed column widths if possible, because the gridviews get lots of columns, and I don't want to waste precious space. In the end there will be more GridViews (~10-20 I guess..), but when it's working for 2 GVs, I'll get it done for more aswell.

Any help appreciated, if you need further information or code (aspx or aspx.cs) don't hesitate to ask.

Thanks a lot in advance!



Hello All-

I would like to customize the "new" form on a SharePoint list that has some columns that use managed metadata term sets as options.  Unfortunately, when I do so, I get the message:

"InfoPath cannot generate a form template for the SharePoint list."

The following fields in the SHarePoint list are not supported because of their data type and will not be available in InfoPath Designer:

-MyColumnName (TaxonomyFieldTypeMulti)

This error message seems to be pretty self explanatory, but it boggles my mind that this would be the case.  Can I really not customize my list "new" form in Infopath if I am using columns with managed metadata?  Any workarounds?


I have created some Sharepoint 2010 lists and generated the default forms via the designer. I then made a few changes to the DispForm to include a ListView web part of related child data (based on this http://www.endusersharepoint.com/2009/12/10/creating-a-sharepoint-list-parentchild-relationship-%E2%80%93-video-remix/ having to make a few changes to the process described for Sharepoint Designer 2010 feature changes). This all works really well online in the usual Sharepoint web interface but when I sync the forms to Workspace 2010 they lose the child data list view control.

Why does the sync to workspace 2010 lose customised form changes?

Is there a way around this?

What limitations are put on form changes when using them in Workspace 2010?

(We are using all 2010 products - new clean install)




HI Guys,

I currently set-up Sharepoint Services 3.0 on a server and when using one of the templates (change request) I tried to edit one of the 'Project List' views to add a column for 'Business Sponsor' i have added this but when I select 'Add New Item' the Business Sponsor search is not there? 

any ideas? I can see the Business Sponsor in the views but thats all. 


Any help would be much appreciated


Thanks Kez 



Can I change name or some properties for example set “Require that this column contains information:”  to “No” for Title column in sharepoint list?

I change column name in Title column in my list, then I cant  Edit Item in AllItem.aspx page.what’s wronge happening if I change Title column in sharepoint list?

 And if can set  “Require that this column contains information:”  properties to “no”and  there is a possible to have Null value, why sharepoint consider this column for all list?



I've got an External List and I want to create a Site Column, which is Lookup to a column in my external list. If I tick any of the columns in 'Add a column to show each of these additional fields' and click OK i get the following error message:

[NullReferenceException: Object reference not set to an instance of an object.]
  Microsoft.SharePoint.SPBusinessDataField.IsInDefaultView() +58
  Microsoft.SharePoint.SPBusinessDataField.CreateSpFieldForBdcType(String bdcName, Boolean hidden, Boolean readOnly, Boolean idField, SPAddFieldOptions op) +809
  Microsoft.SharePoint.SPBusinessDataField.AddNeededSecondaryFields(String wssNames, String[] oldNames, String[] newNames, SPAddFieldOptions op) +315
  Microsoft.SharePoint.SPBusinessDataField.OnAdded(SPAddFieldOptions op) +240
  Microsoft.SharePoint.SPFieldCollection.AddFieldAsXmlInternal(String schemaXml, Boolean addToDefaultView, SPAddFieldOptions op, Boolean isMigration, Boolean fResetCTCol) +759
  Microsoft.SharePoint.SPFieldCollection.Add(SPField field) +61
  Microsoft.SharePoint.ApplicationPages.FieldNewPage.Save() +513
  Microsoft.SharePoint.ApplicationPages.FieldNewPage.BtnOk_Click(Object sender, EventArgs e) +46
  System.Web.UI.WebControls.Button.OnClick(EventArgs e) +114
  System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +139
  System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +28
  System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2980

Is this a bug or (more likely) am I doing something wrong / missing the point?

Also, does anyone know if there will be support for mutlivalue lookups to external lists?



is their anyway i can insert only time in a sharepoint 2010 list column ? thanks


Hi everyone,

I've created a task list on sharepoint 2010 by default it has set of columns i.e title, priority, status, %complete etc...... then I added a new column called 'task group' but when I put information on a newly added column and click on save, the information that I entered on the new column does not save.

Any idea???


Thanks in advance.



When creating a new view - I would like to add an extra column which I could use as a custom hyperlink to fire up the EditForm.aspx or my on custom ediform.  I would like it.  Is there a step by step that shows hwo to do wthis with SP 2010 and SPD 2010?

Thanks in advance




In Sharepoint 2010 I have a Custom List with a column of the type 'Person or Group'.
I would like to have a default name for this 'Person or group' column.
So when a user creates a new list entry and leves the 'Person or Group' column value blank the list entry should be created with the default value für the 'Person or Group' column.

Is there a way to schieve this?

Many thanks in advance.

Roberto Rocco.



I have a lookup column in a list that is pointing to another list's column in the same site. When I want to add an item or update an existing item, it takes very long for the itesm to load. It has around 6000 items only in the source list. I am not sure as to why it would take that long for loading 6000 items.

took me quite a few searches and experiments to find out I can control and minmize the row selector column still showing the arrow on selected row

// in the load event

myDataGridView.RowHeadersWidth = 24; 
// this is the min w still showing the arrow on the Active row
// not sure if screen resolutiona nd size may affect the the min w
// the default is 41 for .net 3.5 sp1

for those interested in making this column invisibe, use

myDataGridView.RowHeadersVisible = false;

I changed  the column width on the publisher and all of sudden my replication failed saying unable to insert identity value.And finally I had to remove the article from the publisher.
How can I increase the column width of table without any impact  thats published as article in Transactional Replication?


  I'm developing a graph in rdlc 2005. If there are less number of rows, then width of bars of chart graph is fine, but as soon as data increses, width goes thiner.

  I want to fix the width of bars. Can any one tell me how?

I am using reportviewer.




     I wanna make grid column changes using mouse runtime in the browser in silverlight 4.  The example we can see is in the following site:


As we can see the left column can be changed with mouse drag. I require similar runtime column changing.

Any help wil be appriciated.




I don't have any code to change the column widths.

These are unbound columns and I manually changed the widths for all the columns. The first and last columns are set to 50 and the others are 100. There are 6 columns total. These columns are also set to ReadOnly and AutoSizeMode = None.

When I press F5 to start debugging and run the program, all of the widths are now the same width. It isn't the case of the text being too long to fit in the cells.

Any ideas on what setting I need to change?


 One thing I am doing is adding a row at a time. When the program starts, there are no rows. Could this be making a difference?




In SP2010 I have the Announcments list configured to send me an e-mail when anything changes. After creating an alert I receive an e-mail letting me know that I have successfully
created an alert for Announcments

I have set the Immediate Timer to 1 minute in central admin.

When someone makes a change to a list item or adds a new item to the announcments list
I do not receive any notification via e-mail.

Checking our exchange server I see that nothing gets received from the sharepoint server
other than the inital e-mail notification.

It appears that Sharepoint is not generating any e-mail for list items that change.

Anyone have any ideas on how to resolve this issue

Thanks Paul


<< Previous      Next >>

Microsoft   |   Windows   |   Visual Studio   |   Sharepoint   |   Azure