SPGridview, a class of the Microsoft.SharePoint.WebControls namespace, represents a grid view that looks and behaves like a SharePoint Foundation list view.

learn more… | top users | synonyms

0
votes
1answer
9 views

Link button issue inside gridview in sharepoint

i have link button inside gridview. can some one help me to form proper URL for this <asp:TemplateField HeaderText="View" > <ItemTemplate><asp:LinkButton runat="server" ID="lnkView" ...
0
votes
0answers
8 views

Tree grid expand not working in SharePoint 2013

I have written a code that represent data in tree grid in SharePoint 2010. and we have moved to 2013 with same code tree grid stop expanding giving me following JavaScript error. TypeError: tr.style ...
0
votes
0answers
34 views

Add Check mark in gridview &#x2713; in c#

Ta I have a gridview display some columns from a list, and I have a column named "Tax" its type is boolean, I want to put ✓ if it's "Yes" and X if it's "No" here's my code : SPSite oSite = ...
1
vote
1answer
21 views

Stop working of submit button after the last day to submit set by admin

I have a grid view and and a text box which submits the value after click of submit button. I have set a last date to submit the value. Now I want that after that date, no one should be able to write ...
0
votes
1answer
54 views

SPGridView PageIndexChanging does not hit when debugging

I have a SP grid view which has loads data in a IList (data added to iList from DB). When the pager pagination arrows "< >" are clicked the pager sometimes loads the same set. When I tried to debug ...
1
vote
1answer
362 views

how to use the gridview in SharePoint 2013 Hosted App

I want know how to use the grid view in a SharePoint-hosted App. Can any one provide information on this?
0
votes
1answer
46 views

How do you display a list of users with full control?

I am currently working on creating a visual web part that displays a list of users with full control to a SharePoint site, along with their loginID and email. The code I've written lists all the users ...
0
votes
1answer
89 views

My gridview does not display.

I am creating a web part on SharePoint that shows site owners and their email addresses. I am able to show that information in a listbox, but I would rather do it in a gridview. When I change my code ...
0
votes
0answers
159 views

How to show gridview with dynamic parameter in asp.net's ajaxtabcontainer programmatically after clicking tab?

Every user has identification id, I need to query database to obtain this id, then select data in gridview by this id as a filter. I create this in ajaxtabcontainer, at first page loading everything ...
1
vote
1answer
106 views

How do you display information in multiple columns programmatically in a web part?

I am developing a web part (not a visual web part) that displays the site owners of a SharePoint site and their email addresses. Right now I am displaying the information in a listbox. It displays the ...
0
votes
0answers
434 views

Adding Rows Dynamically to GridView on Button Click

I am trying to add rows to my GridView dynamically. I followed many blogs on this site and have been successful at doing that. Although there is one Issue. Each time I load my page it posts back and ...
1
vote
0answers
24 views

LINQ to SP Problem

I have a following var resultsMarks = from mItem in MItemList.ToList() select new { ScienceGroup = mItem.ScienceGroup, ArtsGroup = mItem.ArtsGroup, CommerceGroup = mItem.CommerceGroup, ...
0
votes
0answers
110 views

How I can fix columns row in sharepoint gridview?

I use SharePoint 2013 and Performance Point Service for business intelligence. I have a GridView in my page and I want after scrolling page , I can see name of my columns. I have a Grid like this ...
2
votes
2answers
363 views

Sharepoint field not found exception

I am querying a SPList in sharepoint 2010 and populating the corresponding grid view: <asp:DataGrid runat="server" ID="gridView" AutoGenerateColumns="false" ...
1
vote
1answer
736 views

Check box in gridview should update the splistitem check box

I am a newbie in visual studio. I have a Sharepoint list which contains the following fields group name, user, section and active(which is a check box) . I have a grid view visual web part which will ...
1
vote
1answer
53 views

Display two dates in one gridview column, but hide second date if the same as the first date

I have a gridview column which displays two date values. I would like to hide the second value in cases where the two dates are the same. <asp:TemplateField HeaderText="Date Range"> ...
0
votes
1answer
92 views

Display two dates in one gridview column

I'm using the following in my grid view to display two dates in a single column. How can I change this so the date format will be like dd MMM yyyy without the time? <asp:TemplateField ...
1
vote
0answers
367 views

why is Gridview moving infinetly to the right in visual studio 2010 designer view

In visual studio 2010, I have a gridview, with another inside, this has been working fine for 3 weeks, but today, it randomly begins to move to the right in designer, not when deployed, its jumping a ...
1
vote
0answers
185 views

How to add a choice field in JS Grid control

I need to add a choice field (dropdownlist) in each row of a JS Grid control. What is the PropertyID for a choice field. How to add a dropdown. Please assist. i tried like this,but this didnt work ...
0
votes
1answer
1k views

How to dynamically populate a dropdownlist in a gridview header row

I have a gridview which contains a dropdownlist in the header row to allow users to filter the data: <asp:GridView ID="GV_Projects" runat="server" AutoGenerateColumns="False" CssClass="mGrid" ...
0
votes
3answers
462 views

SP2013: Disable Column in GridView

I have a list which is shown in gridview (Quick Edit in the ribbon). Now i want to disable one column with jQuery. This might be possible by applying the attribute aria-readonly="true" to the ...
2
votes
1answer
110 views

GridView Listing Users' Tasks

I have a task list which I want to visualize with a GridView. I want to display the SharePoint users as columns, and underneath these users, their respectively assigned tasks will be displayed. This ...
0
votes
1answer
755 views

SPDataSource for asp gridView returns nothing?

I'm binding my SPDataSource to an ASP:DataGrid but it returns empty gridview not filled. Here's my aspx file <SharePoint:SPDataSource runat="server" ID="SPTypes" DataSourceMode="ListItem" ...
0
votes
2answers
453 views

How to only display the logged in users list items?

I am creating a Expense management application. I have a page that lists the expenses in the system (they click the expense list to view this). I now want to change this so that it ONLY displays the ...
2
votes
4answers
2k views

Refreshing page or making it to respond after downloading the file. All happening in Webpart

I'm having a Visual Webpart that allows user to select Managed Properties and find out what is stored inside it. The result is displayed inside a gridview which he/she can export it to excel. It is ...
0
votes
4answers
789 views

How to fix width of column in SpGridView?

I have a spgridview with dynamic column. I want fix width and if the content is a part of it is displayed. I use this code but don't work for me . BoundField col = new BoundField(); col.HeaderText ...
0
votes
1answer
471 views

Dynamically adding/editing list items in a “new” form of another list?

I'm new to Sharepoint, so I'm looking for some advice on how to tackle a problem I'm having when developing a solution for a client. This is a simplified example: I have two lists: one containing ...
1
vote
1answer
448 views

Gridview for picture library with link

Is there a out of box way to use the picture library on a page that will have grid view with link on the picture?
0
votes
0answers
786 views

How to create Grid view webpart using Visual Studio or code

I need a Grid View Webpart to display multiple rows and columns like an Excel range of columns​. i.e. Users are able to see different columns for different rows. Is it possible to do it via Visual ...
0
votes
1answer
128 views

Don't show DateTime format on a web part

I Created a WebPart with a GridView.I get items of list and show in gridview. Run-time ,datetime field displays only the time. list.GetItems().GetDataTable();
2
votes
1answer
772 views

Attach document from SharePoint List to GridView

I have a SharePoint 2010 list, which has attachments!! I am using a custom grid-view to display some selected List fields from the list. I would like to include the attachment as an embedded ...
3
votes
1answer
571 views

Multiple Media Web parts for Videos in a list?

I want to create a video library for users to upload videos. These should be displayed with a Media Web Part. I would like to be able to have on web part for each video so it becomes a list like so: ...
0
votes
2answers
1k views

Sharepoint list column changes not getting updated - bug?

I have created a list in SharePoint 2010, initially had the columns - Title , Mobile and Email Id. Then I used a grid view (Visual web part) to display these fields. Later I changed the field Title ...
0
votes
1answer
923 views

How to select specific fields from a list to bind with gri

I have used the following code to get the list items in a gridview!! Though I have only three fields visible in the list - Title, Mobile and Email ID. It ends up showing around 10 different fields ...
1
vote
1answer
1k views

GridView CommandField issue

I have a small problem with a GridView in my web part. I bind a DataTable to the SourceData of my GridView and check if the current user is an administrator. If he is, I will add additional ...
1
vote
1answer
551 views

Problem with expanding/collaping gridview rows in Firefox

I have an asp:Gridview control called gvComments that uses the following Javascript to show/hide table rows. If the expand/collapse button is clicked, a string (EventID) is passed to the function and ...
0
votes
1answer
280 views

Last sites and last items in the same list/table/gridview

There is a way to put in a list all updates/insert that users to in every list from all the subsites from sharepoint root site(sitecollection)? Also, to add to this list the site info that users ...
3
votes
4answers
10k views

What is SP Grid View & How to use it?

I know this is a basic question! But still, I need to know What is Grid View? How to use it? What is it used for? Any documentation or links will be of a great use! Thanks! -saumil Using SP2010 ...
1
vote
2answers
724 views

GridView showing FAST results and inline editing items

I'm in the following scenario: I have a single custom list coupled with a document library (for the 'attachments'). Search on this list and the attachments is done by FAST Search. All search results ...
3
votes
3answers
2k views

GridView lookups displaying as “id;#value”

I am using an ASP.net gridview. The datasource is SPList.Items.GetDataTable(). The gridview is working fine; however, lookup and multilookup columns display as "id;#value". Is there any way to just ...