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

learn more… | top users | synonyms

1
vote
1answer
197 views

add MenuItem to MenuItemTempate on event SPGridView.RowDataBound

working on custom web part. I included SPGridView to this web part. I know there is an option at the begining define menu items, however I would like to add/delete/modify the menu items dynamically. I ...
0
votes
1answer
13 views

GetFieldByDisplayName error in CAML query

I'm developing a web-part for SharePoint 2010. I've to sort a SPGridView so I use SortExpression. I execute a CAML query in this way and then I bind data to SPGridView: SPQuery query = ...
0
votes
1answer
73 views

Applying css to a sharepoint gridview

Within my web-part, I want to make the header row of a gridview match the css from the sharepoint css class called ms-ContentAccent1-bgColor(I want to match the theme of the site). However, when I ...
0
votes
1answer
173 views

SPGridView - when sorting AFTER filtering, column looses it's filtered state (filter not removable) How to solve this?

I've got a SPGridView in a webpart that has sorting, filtering, paging and grouping configured. Most of it works fine so far, but it seems like I can't get around this problem: If I filter the ...
0
votes
1answer
207 views

SPGridview Sorting issue with Modal control - Double postback

I'm having a a issue related to Sharepoint/ASP.Net Postbacks. Basically, what's happening is I have the following GridView on my page: <SharePoint:SPGridView EnableViewState="false" ...
0
votes
1answer
63 views

Is there a “URL-Structure” for Users and Groups I can access via Hyperlink?

I have a Custom WebPart which gets credentials from the site into a GridView-Table. The result (user and credential) is shown as strings. I want to create a Hyperlink to the users e.g. mysite, instead ...
4
votes
0answers
203 views

SPGridView - How to make it look & feel like built-in SP grid

In C# code, I'm working with the SPGridView control to display list items from a list of type SPDocumentLibrary. It binds fine, but it looks totally plain and has basically no features. I would like ...
1
vote
0answers
75 views

How to show sorting arrow in SPGridView

I have an SPGridView control in a visual web part. I am trying to implement sorting functionality, but the grid control is not displaying the sorting arrow next to each column header. How can the ...
1
vote
0answers
50 views

How to display rowcount in SPGridview after column filter is applied

I am able to add label to show count in an SPGridView which takes data source (datatable), row counts and displays, but I'm having problems when column filter is applied. Please suggest how I can get ...
1
vote
0answers
70 views

Applying Datasheet view on a GridView Sharepoint

I was wondering if it is possible to apply Datasheet view onto a grid view found in an application page. The grid View was used such that the data is filtered out such that only data concerning the ...
1
vote
0answers
97 views

SPgridView filtering Menu issues for Numeric column

I have built a SPgridview with Filtering, Sorting and Paging. In the grid , i have one numeric type column and other are string columns. There is a issue while filtering the numeric type column, the ...
1
vote
0answers
375 views

How to group columns on SharePoint JSGrid

I'm using SharePoint JSGrid on my custom ApplicationPage and I need to create a visualization like this: | Group 1 | Group 2 | Column A | Column B | ...
1
vote
0answers
278 views

Dynamic content based on Eval() returning null

I have an SPGridView with a list as its source. I currently have it sorting first by published date, or if that is null, by modified date. The problem is that on the list view I need to put Posted on ...
0
votes
0answers
27 views

SPGridView databind on each page call regardless of postback

I construct a data table on page load and set it to a SPGridView. In the GridView I have LinkButtons to do server side updates. On clicking on link buttons it calls on server side methods (eg: to ...
0
votes
0answers
75 views

SharePoint 2013 SPGrid Row Update Controls are not firing

I am using SPgrid view control for Edit and Update data, the web part is working fine in SharePoint 2010 but when I upgraded same web part in SharePoint 2013 then the gridview is not working properly. ...
0
votes
0answers
46 views

Open a Modal Pop when SPMenu item is clicked - ( NavigateUrl )

I need to add a Modal popup on clicking on the url of a SPMenu which resides in a SPGridView. I specify the url in the row data bound method. In the SPMenu when a Application page path is directly ...
0
votes
0answers
86 views

Microsoft.SharePoint.dll version 15 (Sharepoint 2013) doesn't support SPGridView

I'm preparing to develop a webpart need to use SharePoint Gridview 2013 But after I imported Microsoft.SharePoint.WebControls I couldn't use a declaration of SPGridView in the code behind, but in the ...
0
votes
0answers
65 views

ImageButton in GridView - gives event validation error

I have a visual web part which has a SPGridView. every row has a ImageButton (Used for the purpose of displaying an image). Inside spgird's row databind method i set the LinkButton's click event as ...
0
votes
0answers
128 views

SPGridview webpart: Add new row

I want to add a new row (the insert button) in my SPGridView, I use object datasource. I followed this link http://kitmenke.com/blog/2010/02/18/editing-in-sharepoints-spgridview/#comment-1038 to ...
0
votes
0answers
100 views

get document link in gridview

<ItemTemplate> <asp:HyperLink ID="hlURL" runat="server" NavigateUrl="<%# Eval("LinkFilenameNoMenu")%>" Text='<%# Eval("LinkFilenameNoMenu")%>'></asp:HyperLink> ...
0
votes
0answers
191 views

SPGrid ItemStyle custom changes not displayed for normal users

We have made some changes to the ItemStyle.xsl file for the style SPGrid in order to display a few extra columns using the Content Query Web Part. The ItemStyle resides on the highest level of the ...
0
votes
0answers
162 views

Is there a way to make a SPGridView look like XSLTListViewWebPart?

is there a possibility to make an SPGridView (or any other WebControl) look like an XSLTListViewWebPart? I want to mimic a sharepoint list, but can't use a plain list, since i have calculated data ...
0
votes
0answers
562 views

HyperLinkField in SpGridView

I have a spgridview with dynamic column. I get a data of a special list and bind to SpGridView. I have a URL SPFieldType, i want show description in spgridview and set url for navigationurl. I use ...
0
votes
0answers
2k views

How to display data from list in applciation page using SPGridview

I have created an application page which display data from the list . I am able to see dropdown and labels server control./ but when i try to bind the list data to the SPgrid view , nothin gets ...