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

7
votes
1answer
2k views

SimpleLogic SPGridView example used in User Control

I am trying to create the example at this link http://kitmenke.com/blog/2010/02/18/editing-in-sharepoints-spgridview/comment-page-1/#comment-1777 inside a User Control and not in a Web Part. Here is ...
3
votes
1answer
526 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: ...
3
votes
2answers
613 views

SPGridView filtering problem

I have a page with two links that will open two different SharePoint modal dialog. Each of this modal dialog contains a SPGridView data control with Allow Filtering set to True. My problem is that ...
3
votes
1answer
2k views

Problem with paging in an SPGridView

We are using SPGridView and binding it to the database. Paging is also enabled. The grid is showing 10 records as the pagesize is 10, but when we click on the next page it says "There are no items ...
3
votes
0answers
152 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
3k 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 ...
2
votes
1answer
145 views

Edit SPGridview on the fly like Access web part (Data sheet)

I understand the SPGridview control now, but how do I enable the spgridview (or another control) to behave and function like the access control when in datasheet mode?
2
votes
2answers
218 views

Single Quote Issue While Filtering Records In SpGridview

In SpGridview single quote is breaking the filter expression as we are having filter format as "{1} like '{0}'",any idea how we can handle this situation.
2
votes
2answers
2k views

SPGridView HeaderStyle Background

All, I am trying to find the styles for the SPGridView HeaderStyle. It doesn't seem to work when i apply the following: spGridView.HeaderStyle.BackColor = System.Drawing.Color.Blue; ...
2
votes
2answers
561 views

SPGridView extend filter

I'm working on a SharePoint Foundation. Since SPF doesn't provide Content Query Web Part, I'm trying to create a search webpart. In the results gridview there is a column that will show the ...
2
votes
1answer
541 views

datalist item template in webpart for sharepoint list

i am looking for some cool stuff / example to work around with ASP DataList ItemTemplate to provide an interesting look and feel !! well i have a SharePoint (2010) List that has 3 columns (Title , ...
2
votes
3answers
2k views

Using javascript on NavigateUrlFormat at SPMenuField

I have an webpart running on SharePoint 2010 which displays a grid of items using a SharePoint:SPGridView control. The first ├žolumn should display a typical SharePoint menu with the possible actions ...
2
votes
1answer
1k views

Adding a CheckboxColumn to SPDataGridView

I wish to add one column which has a unchecked checkbox in it. This is used so the user can select multiple rows. datatable.Columns.Add(new DataColumn("Selected", typeof(bool))); if above datatable ...
1
vote
3answers
617 views

Using code compiled for MOSS 2007 in 2010

I'm using the SPGridView in a custom page which has been deployed via SharePoint Designer. Now in 2007 everything worked fine but in 2010, the paging doesn't work and results in an error if you try ...
1
vote
1answer
705 views

How to format the spgridview filter data?

I have a SPGridView where I am binding a calculation field. I am dynamically binding data to sp grid view in a web part. The filter value is displaying like String;#filterexp1, String;#filterexp3, ...
1
vote
1answer
16k views

SPGridView Sorting, Filtering and Paging

I'm currently working on my first SharePoint web part to aggregate information from numerous announcement lists in various sites and allow them to be displayed in one single web part. I've used two ...
1
vote
1answer
38 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 ...
1
vote
2answers
1k 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 ...
1
vote
1answer
53 views

SPGridView problems

Can someone tell me how to use SPGridView plzzz, I want to know how it works, Do I neeed to create a data table first then add it to table or create table first then add table to SPGridView. I need ...
1
vote
1answer
1k views

How to filtering multiple columns in SPGridView

I have a webpart with SpGridView. I bind it with ObjectDataSource. I want filtering multiple columns. I set AllowFiltering for spgrid: grid.AllowFiltering = true; grid.FilterDataFields = ...
1
vote
1answer
1k views

Building Dynamic SPGridView with SPDataSource, keeps given 'Value does not fall within expected Range'

I'm trying to build a SPGrid based on a particular List and View in a webpart (Visual WebPart). This should be basic, but when I add the webpart to the page I keep getting the error message "Value ...
1
vote
1answer
113 views

How do fix height of row in SPGridview?(do't wrap row)

I have a Spgridview. I created columns in page-load . When bind it, the height of row is different. Its height varies based on the content within it. How do fix it?
1
vote
2answers
918 views

spgridview clear filter programmatically

I have a textbox a button and a spgridview. When the button is clicked I will search SharePoint with the value in the textbox and bind it to the spgridview. (I'm using LingDataSource). After I filter ...
1
vote
2answers
2k views

SP Gridview link button column not working

I have one sharepoint custom page application which is rendering from a user control. In the user control page, i had used SPGridview for displaying data. My first column is Title Column (link button ...
1
vote
0answers
39 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
1answer
110 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 ...
1
vote
0answers
53 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
1answer
146 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
315 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
0answers
76 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
1answer
151 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 ...
1
vote
2answers
324 views

List item field value has ID and # prepended

I want to display a list of items with name and modified time, like so: SPWeb thisWeb = SPContext.Current.Web; SPWebCollection webs = thisWeb.Webs; SPSiteDataQuery query = new ...
1
vote
0answers
310 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
1answer
79 views

Properties are null while DataBind

I'm having a spgridview in a visual webpart. The datasource of this gridview is written in the ascx-file and has a selectmethod in codebehind. The problem is that while the datasource does it'S ...
1
vote
2answers
271 views

Display the data in spgridview with several column in each row

I need to develop a webpart which takes data from list and populate in spgridview. The webpart should look like in the image atached. I am able to display the column 1 i.e one image for each row but ...
1
vote
1answer
1k views

SPGridView sorting then grouping problem

I'm using SPGridview with LinqDataSource and Generic List. I'm having problem when try to do grouping after sorting. Please refer to the screen shot below. Its grouping in the order of the previous ...
1
vote
0answers
260 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 ...
1
vote
2answers
377 views

Remove arrows from menutemplate

I've create a web part that displays a SPGridView with an SPMenuTemplate. My problem is the context menu that pops up has these little arrows on the left hand side which are undesired and which also ...
0
votes
2answers
398 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 ...
0
votes
2answers
742 views

How do sort Templatefield in spgridview?

I have a spgrid with BoundField. I set allowsort to true. I bind datasource. but when i click in header dont sort?! DataTable table = new DataTable(); table.Columns.Add("Name"); ...
0
votes
2answers
640 views

Show headers on empty data source in SPGridView

I have a webpart with SPGridView. I created column dynamic. This works fine when I have data, but when no rows are returned then I just get a blank spot where the grid should be.
0
votes
2answers
2k views

How to Export sharepoint 2010 SPGridView data to excel

How to Export sharepoint 2010 SPGridView data to excel. My data with tree strutured is avilable in spgridview. Note: if any of the column value contains multiple value then i need to convert into ...
0
votes
2answers
26 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
131 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. ...
0
votes
1answer
399 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
1answer
110 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
462 views

Problem with visualization SPmenuField in SPGridView

I have created SPGridView and added one SPMenuField as the first column and some BoundFields. Then I added MenuTemplate to the first column. But there are rectangles with white color border (look at ...
0
votes
1answer
226 views

SPGridView Edit Causeing postback and Grid Disappears

I have created a webpart with an SPGrid that is created after an onclick event. The grid displays with an "Edit" Button. When I click on the edit button it causes a postback and the grid disappears. ...
0
votes
1answer
239 views

SPGridview Filters date formatting issue

I have an issue with spgridview filters, in my grid view i have column that contains start date and i have to display date in "yyyy-MMM-dd" format, i am able to do this with the custom itemtemplate ...
0
votes
4answers
729 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 ...