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
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
0answers
340 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 | ...
0
votes
1answer
235 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
254 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
791 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
0answers
510 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
1answer
218 views

Don't sort number in SpGridView

I have a SpGridView whit BoundFiled. I set a ObjectDataSource for it. sourceDataTable = new DataTable (); myDataTable = new DataTableWrapper(sourceDataTable); Type t = ...
0
votes
2answers
774 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
681 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.
1
vote
1answer
115 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
1answer
728 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, ...
0
votes
2answers
88 views

Why does the GUID show in my Column information when using spgridview?

I am using spgridview to collect document information from multiple document libraries in my SharePoint 2010 publishing site. When the column information is displayed, it seems that a GUID or ...
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; ...
1
vote
2answers
972 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 ...
2
votes
2answers
580 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 ...
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: ...
3
votes
2answers
630 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 ...
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 ...
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 ...
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 ...
1
vote
2answers
288 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
269 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
1answer
743 views

Binding User to SPGridview

I have an SPGridview and I made a CAML Query to get the modifier of a document. When I bind it to the SPGridview with a SPBoundfield the value is displayed like this: 1;#HANSEVIS13\sschindler ...
2
votes
1answer
568 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 , ...
0
votes
1answer
568 views

what's the best practice to display tabular / Grid data in Sharepoint 2010?

We can develop a custom control in Visual studio and deploy it as a webpart to use in SP. but I head of some other ways, so can you please list possible ways to achieve this? and what's the pros and ...
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 ...
1
vote
2answers
388 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 ...
1
vote
1answer
17k 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 ...
0
votes
1answer
1k views

SPGridView and ButtonField

I have an SPGridView with RowCommand event handler defined to handle link events from the grid view. I have a ButtonField on every row defined with CommandName and DataTextField. When my event ...
1
vote
3answers
627 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
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 ...
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 ...