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
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

Questions tagged [gridview]

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

1
vote
2answers
30 views

Sharepoint Edit Grid on load without clicking on the edit button

I want to not have to click on edit rather open the grid in editable mode using js. I inherited js script which for the most part self explanatory but I am new to sharepoint and have been looking ...
1
vote
1answer
82 views

How to add a GridView to a Visual Web Part?

I'm new to SharePoint and am developing a simple World Clock Visual Web Part, following this blogpost from SharePoint Hero. In the blogpost the instructor describes adding a GridView to the Web Part, ...
0
votes
1answer
35 views

code can't find GridView Controls

I have some code and it is unable to take the values entered from a dropdown list or textbox and output them to a SharePoint List. here is the code try { SPWeb web = ...
0
votes
1answer
373 views

How to properly use GridView to create items on SharePoint Lists?

I'm trying to transfer values from a GridView web-control I'm using in a webpart into a SharePoint list, but whenever I click "save" the data isn't being kicked into the list. All that happens is a ...
2
votes
1answer
49 views

Display a standard grid for a external list connected through BCS

Environment Sharepoint 2016. Visual Studio 2017. Sharepoint Add-In in a hosted environment. Requirements Display an external list connected through BCS in a standard grid view with possibility of ...
1
vote
0answers
19 views

How to get only selected value from Grid-view c#?

In my sharepoint list 3000 items are present.I am displaying this items in Gridview in radio buttoncontrol in single selection.At a time user can select only one item. But using gdvColumns.Rows it ...
1
vote
1answer
105 views

How to perform search on SharePoint list bound to a gridview

I have a SharePoint list which is bound to an asp.net gridview, I further want to search every column. Is there a way to perform such a search wherein there is no database, but search should be ...
1
vote
0answers
326 views

Bind Sharepoint list data in gridview

I have two SharePoint two lists- A and B. A has two columns- Id and People(Person or Group). B has three columns - Id(lookup from A list),name,email. In list A, a single item can have multiple person ...
4
votes
2answers
815 views

Facing issue in binding Kendo UI grid with SharePoint list

I am facing the issue in binding Kendo UI grid with Sharepoint List. I am getting following error, Uncaught TypeError: $(...).kendoGrid is not a function I have added scripts in the following order,...
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
2answers
37 views

Problem with GridView on Sharepoint

I tried to insert rows on GridView ASP.Net control. I tried this code: DataTable dt = new DataTable(); DataRow dr = dt.NewRow(); dr["Nr"] = string.Empty; dt.Rows.Add(dr); GridView1.DataSource = dt; ...
0
votes
1answer
435 views

Gridview with dynamic radiobutton list

I have created one grid view with radiobuttonlist as shown in figure. radio-button list items are bind dynamically from SharePoint list. When I click on submit button, unable to get selected radio ...
0
votes
1answer
41 views

SP - When click buttonToExcell page stay blocking

My problem is, where i click a button for export in excel, all buttons in my page not working, when refresh everything is okay. This is my code for btn to excel: oid btnToExcel_Click(object sender, ...
0
votes
1answer
359 views

I would like to create a customize grid view on a sharepoint page in SP2013

I would like to create a customize grid view in SharePoint using a list that has already been created. the tools I have to do so are SharePoint designer and a CEWP. I have some coding experience but ...
0
votes
0answers
463 views

Gridview Databinding method in sharepoint

I know I have done something wrong so I need some suggestion about writing the below code. protected void Page_Load(object sender, EventArgs e) { SPWeb web = SPContext.Current.Web;...
1
vote
1answer
74 views

Null Reference error in gridview code

While debugging I found that ItemID value is getting null. I am trying to get the list item's ID. ItemId = GridView1.DataKeys[e.RowIndex].Value.ToString(); Can anyone please tell me what could ...
1
vote
2answers
541 views

Download all attachments of a list item from grid view

I need to download all attachments of a list item from gridview in a visual webpart. I tried hyperlink but unable to get it. Can anyone tell me how to use anchor tag and use href or any other ...
2
votes
1answer
711 views

Index out of range for delete in gridview

The following is the code to delete a row from Grid View and update the Content list thereby. But it gives Index out of range exception. protected void GridViewD_RowDeleting(object sender, ...
0
votes
1answer
59 views

Delete function in DataGridView of custom webpart

I have used a DataGridView in a custom webpart to show a list and add an auto delete button in it, but delete function is not working. Below is my code for the same: protected void ...
0
votes
0answers
356 views

How to create grid view for the Custom List

How to create a grid view for the custom list, It would be better if someone explain, how it can be implemented through JavaScript or Jquery using webpart.
1
vote
2answers
3k views

Get SharePoint List data & Bind to Gridview by Client Script

I need to get data from SharePoint List using Client Script (JavaScript) and bind same data to GridView using Client Script (JavaScript, JQuery, etc...) kindly suggest me on this.
0
votes
1answer
117 views

XML Document Missing Column / DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'myColumn'

I kept getting the above error when trying to bind an XML document to a GridView. The problem is that some of the XML documents were missing the column and some weren't for some unknown reason. The ...
0
votes
2answers
168 views

Bind in GridView in a VisualWebPart not evaluated

I have a VisualWebPart with a AspTemplateField that should bind a field but it doesn't The code is the following: <SharePoint:SPGridView ID="GridView1" runat="server" AutoGenerateColumns="...
0
votes
2answers
839 views

Is it possible to bind a sharepoint grid view to a list view(and not the original list)?

I have created a grid view which is binded to a list. I have also created a list view for this particular list with some filtered data. I want to know whether is it possible to bind the sharepoint ...
1
vote
1answer
1k views

Can I achieve conditional formatting on a gantt chart?

I have created a Gantt view on a list, showing the Gantt chart and several columns. One of my list columns is a R/Y/G status column. I would like the cell that displays the R/Y/G status to show the ...
0
votes
1answer
111 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" ...
1
vote
1answer
28 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
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 ...
1
vote
1answer
1k 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
141 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
563 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 ...
2
votes
1answer
472 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 ...
1
vote
0answers
28 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, ...
2
votes
2answers
1k 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" AlternatingRowStyle-BackColor="...
1
vote
1answer
1k 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
92 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
205 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 HeaderText="...
1
vote
0answers
587 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
526 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
3k 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
4answers
2k 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
128 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
926 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
846 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 ...
6
votes
4answers
7k 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
1k 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
925 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
0answers
832 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
1k 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
145 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();