.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Sharepoint Gridview

Posted By:      Posted Date: September 26, 2010    Points: 0   Category :SharePoint
i m using gridview in my web part... everything is working fine.. but the update event not working..
edit n cancle n all event are working fine in my web part.. when i click update button nothing happen. postback occur bt nothing happend.
wats the error ?

View Complete Post

More Related Resource Links

Row-based SharePoint Gridview

Hello, I want to stylize a SPGridview as row-based. I can do it in ASP .Net as follows (this is sample code and doesn't have a meaning. I wrote here because of describing the problem clearly on programmer side): <asp:GridView runat="server" ID="myGrid" AutoGenerateColumns="false"> <Columns> <asp:TemplateField> <ItemTemplate> <table> <tr> <td> <b>Position:</b> <%#Eval("Position") %><br /> <b>Gender</b> <%#Eval("Gender") %> </td> </tr> </table> </ItemTemplate> </asp:TemplateField> </Columns> </asp:GridView> Of couse, Eval sections should match with SQL Columns names in query string. So I want to do same with Sharepoint Gridview. SPGridview supports item template too but the problem is how to bind data to Eval (or whatever in Sharepoint) sections. This problem seems to you silly but there is a big text field in a SPList and I want to show it under title using a webpart. I tried views also but I think SharePoint has "Column-based" logic. Do you have any suggestion?

Sharepoint 2010 BCS-External List in a GridView


Hello Everyone,

In sharepoint 2010, using Business Connectivity Services(BCS) we are able to create an external list ( a list of data from back-end).

My question is --- it possible to show the data from BCS into a gridview instead of a LIST?

currently I am doing code in a visual webpart like:

  1. gridview1.datasource=mynamespace.myclass.ReadList();
  2. gridview1.databind();

But I found that ,its not good for all kind of tasks like  -----sharepoint designer external content types etc..

any other options like Business Data WebParts?

Like Cricket

Multiple Fileupload into the sharepoint document library using Fileupload control inside gridview



how to upload multiple files to the sahrepoint document library using fileupload control inside the gridview.?

this is my form design:


<asp:Gridview id="gridview" runat ="server" autogentatecolum="false">


<asp:TemplateField Headertext="3DFinal" runat="Server">


<asp:FileUpload id="Fileupload1" runat ="Server"/>



<asp:TemplateField Headertext="2DFinal" runat="Server">


<asp:FileUpload id="Fileupload2" runat ="Server"/>



<asp:TemplateField Headertext="2Conceptaul" runat="Server">


<asp:FileUpload id="Fileupload3" runat ="Server"/>







<asp:Button id="Save" runat="server" Text="Save" onClick="btsave-Click"/>



If i click the save button the files should go to the sharepoint document library?

i need to uplaod multiple files to the document libray using file upload inside the gridview..

any one know about this file

Inplace Edit in GridView

In this article I am presenting a different way to look at EditItemTemplate, using which user navigation for editing is reduced and . it looks very different (see screeen shots) then regular implementation of GridView.

GridView Confirmation Box Using JQuery BlockUI in asp.net

JQuery is the most popular JavaScript library. One of the main reasons for its fame is the plugin architecture. Anyone can create a separate library that leverage the JQuery library. In this article we are going to look at the BlockUI library which is used to block the user screen while performing a task.

Changing the graphics on the home page of a SharePoint site

When you create a site in Microsoft Windows SharePoint Services by using the default Team Site template, the home page includes two default graphics. A Windows SharePoint Services graphic appears in the body of the page, and a picture of a house in a circle appears near the site title. You can change these graphics to customize your site. Changing the smaller graphic requires a Windows SharePoint Services compatible Web page editor

Displaying SharePoint lists in Web Parts

When you create a built-in or custom list in Microsoft Windows SharePoint Services, Windows SharePoint Services creates a Web Part, a basic building block of a SharePoint site, to display that list. These Web Parts are called List View Web Parts. Windows SharePoint Services stores List View Web Parts in the site collection Web Part gallery. (The site collection Web Part gallery is the most central gallery of Web Parts for a work group. By default, the gallery name is the name of the site, such as "Our Team Site Web Part Gallery." )

Take a tour of your SharePoint site

What is a SharePoint site for?
A SharePoint site is a Web site that provides a central storage and collaboration space for documents, information, and ideas. A SharePoint site is a tool for collaboration, just like a telephone is a tool for communication, or a meeting is a tool for decision making. A SharePoint site helps groups of people (whether work teams or social groups) share information and work together. For example, a SharePoint site can help you:

Coordinate projects, calendars, and schedules.
Discuss ideas and review documents or proposals.
Share information and keep in touch with other people.

Six easy ways to customize your site using Web Parts in SharePoint

Becoming familiar with Web Part customization techniques gives you a range of page-customization choices. For example, you can customize your site's home page so that it displays the specific information that your team needs. You can rearrange the list items on the home page, add lists, and even change the images on the home page. As you become more familiar with Web Part Page customization techniques, you can build interactive Web Part Pages that makes the data in lists more dynamic and useful, and you can add new Web Parts that provide access to external data and Web services.

Working with SharePoint document libraries

Document libraries are collections of files that you can share with team members on a Web based on Microsoft Windows SharePoint Services. For example, you can create a library of common documents for a project, and team members can use their Web browsers to find the files, read them, and make comments. Users with Microsoft Office 2003 can check out and edit the files as if they resided on a local or network drive.

By default, your team Web site comes with a built-in document library named Shared Documents, which is listed on the Quick Launch bar as well as on the Documents and Lists page.

Out of the Depths of SharePoint's XML Hell

I described how a new open source tool called sporm significantly simplifies unit testing SharePoint. Making SharePoint unit testable is my absolute favorite feature of sporm because SharePoint is notoriously hard to unit test. But sporm provides other benefits as well and its ability to pull us out of the depths of verbose loosely typed XML hell and into LINQ excellence is next on my list of favorite features. So in this post I'll describe the pre-sporm technique of querying with CAML, how to query data using sporm, and finally how sporm supports SharePoint's unique architecture of allowing multiple content types per list and what that means to you.

Unit Testing SharePoint - Past, Present, and Sporm

As I described in SharePoint: The Wild West of Software Development there is a serious problem when you develop for SharePoint: ensuring quality through unit testing is really, really hard. And that's where a new open source tool just released today called sporm (SharePoint Object Relational Mapper) comes in. While sporm provides many benefits besides simplified unit testing I wanted to focus on this topic first, because sporm's approach, which models the entity framework in the way it supports POCO's, is a unique feature not available with other SharePoint tools like LINQ to SharePoint.

SharePoint Tutorial - Web Parts

A page in SharePoint is comprised of web parts the exist within zones. Web parts are available for just about everything. For example in the page below there are four web part highlighted by different colors. The purple web part displays a short list of the new announcements stored in the annoucements library. The pink web part displays events from a calendar within the site. The green web part displays an image from a location the user specifies. The gray web part displays a list of links from the links list on the site.

SharePoint Tutorial - Team Sites

Team sites are small web sites that are created to store everything about a particular thing. For example a site can be created for a department in an organization like human resources. I site can be created for a particular project. A site can even be created for a meeting. Everything about the thing (department, project, meeting) like documents, lists, calendars, etc. is stored in that site.

SharePoint Tutorial - Libraries

A library is a feature in SharePoint that stores files (documents). Think of a library as a folder on your file system. For example, a library can be created to store resumes in the human resources team site. A library is usually created for a specific type of file. Libraries can contain metadata to describe the particular file in more detail and to make it easier to find.

SharePoint Tutorial - Lists

A list is a feature in SharePoint that stores a lists of information. For example, a list can be created to store web links in the human resources team site. A list is usually created for a specific type of information. Lists can contain metadata to describe the particular information in more detail and to make it easier to find.

SharePoint Tutorial - Security

Security in SharePoint is comprised of users, groups and roles.

Users, Groups and Roles

A user account comes from the authentication system. For example, if Active Directory is used to authenticate then the user accounts will come from it.

There are two types of groups SharePoint uses: domain groups and SharePoint groups.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend