Archive for the ‘List’ Category

Add color coding to your SharePoint lists Using calculated columns


Introduction:- This article describes; that how to apply color code to sharepoint lists or sharepoint documnet library. This article will use below terms- – OOB -> Out of the box. – CQWP -> Content Editor webpart – SharePoint calculated columns

July 1, 2014 · Infoyen · 3 Comments
Posted in: List, MOSS, SharePoint, SharePoint 2010

Add, Update and Delete List Items Programmatically in Sharepoint


Introduction: In this article I will describe that how we can – Add new item into sharepoint list programmatically. – Update item into sharepoint list programmatically. – Delete specific item from sharepoint list programmatically. – Delete bunch of items from sharepoint list programmatically. – Get list items from sharepoint list programmatically.

July 3, 2012 · Infoyen · 2 Comments
Tags: ,  · Posted in: List, MOSS, SharePoint

Delete selected Items from sharepoint list programmatically


Introduction There are few ways to delete item from sharepoint list, however I like the way to perform ProcessBatchData method (approach 1 in this article) which seems faster to me. Here I am going to explain about 2 approaches in which we will  use SPListItem.Delete or SPWeb.ProcessBatchData method. My example will delete items from list if […]

April 18, 2012 · Infoyen · 8 Comments
Tags: , , , , , , ,  · Posted in: List, MOSS

Updating a List Item programmatically


Introduction: In this article I am going to explain you how to update list item programmatically . Also I will explain you that How to “update content type of list item programmatically” which is little tricky.

March 27, 2012 · Infoyen · 2 Comments
Tags: , , ,  · Posted in: List, MOSS, SharePoint

Binding a SharePoint Event Handler


You must associate your event receiver with a SharePoint object type (the event host), which you do by binding the event receiver to the receiver host. There are two ways to bind an event receiver to a receiver host in Microsoft SharePoint Foundation 2010: 1.    By using the SharePoint Foundation object model. Most of the […]

March 21, 2012 · Infoyen · No Comments
Tags:  · Posted in: Event Handler, List, MOSS, SharePoint, SharePoint 2010

List Item Event Handlers Using SharePoint Features.xml


Introduction: In this article I am going to explain you that How to create List Item Event handler using sharepoint feature. There are various event types. For more detail on various event types refer MSDN link. Here I will take example of Item Added & deleting action event. On added event, we will add item […]

March 21, 2012 · Infoyen · One Comment
Tags: , , , , , ,  · Posted in: Event Handler, List, MOSS, SharePoint

List Item Event Handler Using SharePoint Object Model


Introduction: In this article I am going to explain you that How to create List Item Event handler using sharepoint object model. You can bind a SharePoint Foundation event handler by using event receiver base classes in the SharePoint Foundation object model. Our goal in this Article is to bind the ItemAdded event .

March 21, 2012 · Infoyen · No Comments
Tags: , , , ,  · Posted in: Event Handler, List, MOSS, SharePoint

Setting List Item Permissions Programatically in sharepoint


I am setting permissions on a individual SPListItem.  I’ll create a Role Assignment (which essentially represents the user), bind a Role Definition to the Assignment (such as “Full Control”, etc.), then add the Role Assignment to the object’s RoleAssignments collection. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 […]

March 13, 2012 · Infoyen · No Comments
Tags: , , ,  · Posted in: List, MOSS, SharePoint

Creating a List programmatically using the sharepoint object model


You can create a list by picking one of the List Template Types available in the SPListTemplateType object. Guid listId = web.Lists.Add(“List Name”, “Description”, SPListTemplateType.GenericList); SPList list = web.Lists[listId]; Reference: http://msdn.microsoft.com/en-us/library/ms425818.aspx http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splisttemplatetype.aspx Thanks! Avinash

March 12, 2012 · Infoyen · No Comments
Tags: , ,  · Posted in: List, MOSS, SharePoint

Programmatically adding items to a SharePoint list


using(SPSite site = new SPSite(“http://”)) { using (SPWeb web = site.OpenWeb()) { SPList list = web.Lists[“SharePointList”]; // you can use web.GetList method which is better for performance. SPListItem Item = list.Items.Add(); item[“Title”] = txtCompanyName.Text; // the text which need to update //can add required items  item.Update(); } } Note: 1. No need to use SPSecurity.RunWithElevatedPrivileges. […]

March 12, 2012 · Infoyen · One Comment
Tags: , , , ,  · Posted in: List, MOSS, SharePoint


myworldmaps infoyen