Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [spgridview]

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

0
votes
0answers
27 views

SPGridView clear filter is disabled when multiple column having filter

I have successfully implemented multiple column filter in SPGridView but facing an issue on clear filter. Clear filter is showing disabled for all columns on which I applied filter. If I filter on one ...
0
votes
1answer
28 views

How to properly use the SPGridView?

I want to display the SharePoint List Items on the page based on the filter applied. Managed to get it done with SPGridView however I see that it can be improved. As paging is enabled, it reloads ...
0
votes
1answer
311 views

SPServices Grid view- SharePoint Multiple line column values to display in text-box

I have created Multi-line column in SharePoint list. And using spservice, I have created grid view to display values like below: when I select date, it retrieve values from SharePoint list and ...
2
votes
1answer
167 views

How to add a DropDownList column to GridView? Visual web part

How can I add a DropDownList column to gridview in code behind? In my case a want to add a dropdown called Employer. I have successfully added 1 string column called Name with the following code: ...
0
votes
0answers
47 views

Two SPGridView on one page: Sorting issue

I have two spgridviews on a page, in which if I sort the second grid it calls/triggers the sort event for the first grid instead of triggering it's own event. Same thing happens with other events also ...
0
votes
0answers
73 views

SPGridView error while filtering

Version : SharePoint 2010 I am getting below error while i click any of the filter dropdown in my SPGridView implemented. Below is my markup and code implemented so far. ASPX <SharePoint:...
0
votes
0answers
73 views

SPGridView multi column filter issue

I have taken SPGridView Control and kept allow filtering as true. But I am not able to filter on more than one column. Any help would be appreciated Thanks
0
votes
1answer
41 views

Get all users in SharePoint?

If my companies AD is the SharePoint user base, how would I get all the employee's First/Last Name and Extension in C#? I plan on displaying them with SPGridView.
0
votes
1answer
2k views

Set gridcell value in quick edit with javascript

I have a new item form (masterdata) which should have several sub items that are stored in another list. The sub items should be entered using grid view and linked to ne newly created item. My ...
0
votes
1answer
320 views

Bind items from multiple list in a grid

I want to bind the items from multiple list into a gridview. I earlier used SPSiteDataQuery to bind the items from multiple list in a gridview but then I was not able to cast the items into ...
0
votes
1answer
75 views

Pre defined SPGridView Missing Filter Icon

I have an SPGridView and ObjectDataSource which are all pre defined in the ascx, bu the grid are just populated by the code behind via the object data source code. The grid view is inside an update ...
0
votes
1answer
121 views

SPGridview Filter is being cleared on paging events

I have an SPGridView, SPGridViewPager and an Object data source that are all pre-defined in the ascx. The grid are just populated by the code behind with the object data source. The grid view is ...
2
votes
1answer
127 views

Hiding column of a gridview in visual webpart

I am adding columns to gridview by following code.. SPQuery query = new SPQuery(); query.Query = "<Where><Eq>" + "<FieldRef Name='Filter' />" + "<Value Type='Integer'>1&...
0
votes
1answer
52 views

How to make a group field as hyperlink in SPGridView

How to make a group field as hyperlink in SPGridView. I have following code to add grouping for my gridview but it's not a hyperlink. gridView.AllowGrouping = true; gridView.EnableViewState = false; ...
0
votes
1answer
36 views

SP - Foreach Gridview cells before export in Excel to change TextFont

I want to change text in gridView cells before export in excel, because the text is big after export. This is my button to export in Excel: void btnToExcel_Click(object sender, EventArgs e) { ...
4
votes
1answer
103 views

How to modify DropDown Menu of a SPGridView?

I'm using an SPGridView to display search results (SP2010) and I would like to modify the way datetime column is displayed through the column menu. Schema are more meaningful than long speeches so I'...
1
vote
1answer
47 views

How to display a counter front of SPGridView groups?

I have an SPGridView and when grouping on it, it displays groups perfectly. However, in the SharePoint native list view, we can specify the view to filter and grouping on some columns etc. When ...
1
vote
0answers
100 views

Getting too many groups when sorting after grouping on spgridview?

When applying a sort on my spgridview after grouping, the sort does works but the groups are splited in many others labeled identically. For instance, if I have: group 1 4 2 group 2 3 group 3 1 ...
1
vote
1answer
214 views

How to filter on System.DateTime using FilteredDataSourcePropertyFormat?

I'm using an SPGridView that displays search results and it works perfectly. Sorting and filtering works fine as well unless for the DateTime Column. When I'm trying to filter by Date I have the ...
1
vote
1answer
50 views

Paging disappears after filtering in SPGridView

I am using an SPGridView in which I have put paging and filtering facility. But whenever I change the page and then do filtering, the paging disappears. How can I correct this?
0
votes
1answer
60 views

Display the group by with metadata in SPGridView

I have one SPGridView, on this grid, I'd like to have the group by based on the Managed Metadata column. But the display in the Group by line will contain the TermID like below: Type: Testing|...
0
votes
1answer
248 views

Sharepoint 2013 : Client side delete items from list on click of checkbox

I want to display 30 list items on a page. On checkbox change event I want to delete items from a SharePoint list. I can do this using spgridview server side , but how can this be done client side (...
1
vote
0answers
33 views

Sharepoint online, enable rich text editor for a custom field [duplicate]

I've an APP with an input text item. It's possible to activate the rich text editor of sharepoint (365) to edit this field? And If i want to do the same thing into a grid? Thanks!!
0
votes
1answer
113 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
2answers
351 views

Bind SQL data with SharePoint Gridview

I'm developing a SharePoint solution, In an Application Page, I want to place SPGridView and I have to bind it with SQL server data. Is it possible and if yes, how?
0
votes
1answer
613 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 ...
1
vote
0answers
183 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 ...
0
votes
2answers
423 views

SPGridView SelectedRow.Cells[] returns empty value

I have created an SPGridView control in my visual web part. Inside SPGridView, there is an SPHyperLink control that stores some URL. When accessing this value using SPGridView SelectedRow.Cells[3]....
0
votes
2answers
472 views

How to trigger a click event for a column item in SPGridView control

I have created a SPGridView control in a visual web part project. This control displays all the folders inside a Document library. I have used SPBoundField to the display the column data. Is it ...
0
votes
2answers
105 views

Downloading documents displayed in SPGridView - SP 2013 foundation

I display a selected set of documents in the document library within a SPGridView in a webpart. The documents should be downloadable and i use LinkButton for this purpose. A method is used on the ...
0
votes
1answer
1k 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 ...
0
votes
2answers
830 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
0answers
468 views

get document link in gridview

<ItemTemplate> <asp:HyperLink ID="hlURL" runat="server" NavigateUrl="<%# Eval("LinkFilenameNoMenu")%>" Text='<%# Eval("LinkFilenameNoMenu")%>'></asp:HyperLink> </...
1
vote
1answer
90 views

How to embed SPList to a custom application page?

I have a custom central admin list and would like to insert it to a custom application page in a way that would make it look exactly like it does if you access the list via its URL - i.e. it should ...
2
votes
1answer
7k views

SPGridView Filtering & Sorting With DataTable

I need a help filtering and sorting SPGridView based on DataTable, from the articles I've seen online, they use ObjectDataSource and so on, but I have the Grid binded directly to DataTable, is there ...
1
vote
0answers
76 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 ...
5
votes
1answer
350 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 ...
2
votes
1answer
794 views

display load in progess on application page

i have an application page called from a webpart with SP.UI.ModalDialog.showModalDialog() On this page i've an spgridview, 2 textbox for choosing date between and a button. When i click on the ...
0
votes
1answer
327 views

SPMenu Field for sharepoint document library

I have written code where it will show the Sharepoint document library in sp grid view.It is showing the grid but i want the default spmenu field for the type icon. please see the attached image. ...
1
vote
0answers
106 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 ...
0
votes
0answers
417 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 ...
1
vote
1answer
252 views

SPGridView Filtering for taxonomy columns

I am displaying some sharepoint 2013 list data in SPGridView and I am using SPDataSource for binding list data with grid. The problem is with managed metadata columns filtering. In filter of managed ...
1
vote
2answers
672 views

Sp Grid View filtering problem

I have sp grid view in my application page, I am binding some data to the sp grid vie, now I want to apply filtering for this grid.I tried the following code, I am getting error when I click the ...
1
vote
2answers
4k views

SP GridView Filtering in share point 2010

I have sp grid view in my application page, I am binding some data to the sp grid vie, now I want to apply filtering for this grid. I am googling on this one since 2 days, I am unable to get the exact ...
0
votes
1answer
986 views

Sharepoint 2013 ListView using GridView

So I have this problem. I have a list in the root site level. But I want this list to be managed by some subsites. For this reason I have to recreate some view of this list on different subsites, but ...
0
votes
0answers
210 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 ...
2
votes
1answer
8k views

SharePoint 2013 gridview

The new SharePoint 2013 gridview is really cool (see above). I like to use it in an application page since I need to add some extra functionality to it (preview and copy to clipboard). Is there any ...
1
vote
0answers
114 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 ...
0
votes
1answer
219 views

How to list all alements by CAML to SPGridView

Is it possible to display the listitems retrieved from a CAML query in a SPGridView? How can I implement it?
0
votes
1answer
303 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" runat="...