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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
9 views

I am attempting to paste emails in SharePoint from one column to another, however only some of the emails populated in the other column

The names are connected to email addresses and when I go to paste them in another column they do not populate. The column setting is Person/Group so that the email will show up. It is weird how some ...
Brendan Mulligan's user avatar
1 vote
0 answers
67 views

How to resolve e.clvp.Init is not a function error from SharePoint list view?

I have a list view showing below error message whenever I am opening list view. When I refresh the page, the list view will start working again. Any thoughts why this is happening? PS: It is a ...
Aakash Maurya's user avatar
0 votes
0 answers
46 views

Dynamically change and restrict "AssignedTo" (People Picker Field) to select from a specific user group on Quick Edit mode?

I have a List A and List B. List A contains the group I want to assign a task. List B contains the person from that Group based on a lookup from List A. However in OOTB Quick Edit Mode it shows all ...
Awais Korai's user avatar
1 vote
1 answer
53 views

Unable to show the lookup field in datagrid view using CSOM sharepoint online

private void btnGetdata_Click(object sender, EventArgs e) { try { string WebUrl = this.listUrl.Text; string lib = this.txtLib.Text; ...
Sarah Biswal's user avatar
0 votes
2 answers
3k views

Edit in grid view not working

I am having an issue with editing in grid view. I have few document libraries where users are updating the metadata using grid view. The problem we have is that it is working in some of the document ...
Harris's user avatar
  • 581
1 vote
2 answers
144 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 for ...
user80426's user avatar
1 vote
1 answer
946 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, ...
gsamerica's user avatar
0 votes
1 answer
245 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 = ...
prejt's user avatar
  • 3
0 votes
1 answer
856 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 ...
prejt's user avatar
  • 3
2 votes
1 answer
72 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 ...
Mark Twain's user avatar
1 vote
0 answers
146 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 ...
elina's user avatar
  • 441
1 vote
1 answer
291 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 ...
Sanjana V's user avatar
  • 301
1 vote
0 answers
480 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 ...
user29762's user avatar
  • 101
4 votes
2 answers
2k 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,...
SynozeN Technologies's user avatar
0 votes
1 answer
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 ...
fuetty's user avatar
  • 68
0 votes
2 answers
53 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; ...
Grzegorz Z's user avatar
  • 1,709
0 votes
1 answer
1k 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 ...
Zala Nilesh's user avatar
0 votes
1 answer
42 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, ...
Goshky's user avatar
  • 2,058
0 votes
1 answer
421 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 ...
Laws's user avatar
  • 11
0 votes
0 answers
539 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;...
KumarV's user avatar
  • 2,660
1 vote
1 answer
102 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 ...
KumarV's user avatar
  • 2,660
1 vote
2 answers
803 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 ...
Satya's user avatar
  • 51
2 votes
1 answer
2k 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, ...
Shahroz Shaikh's user avatar
0 votes
1 answer
66 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 ...
Shahroz Shaikh's user avatar
0 votes
0 answers
413 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.
Rishabh Shukla's user avatar
1 vote
2 answers
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.
sai rama's user avatar
0 votes
1 answer
180 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 ...
jpollar's user avatar
  • 1,127
0 votes
2 answers
192 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="...
Gyonder's user avatar
  • 1,183
0 votes
2 answers
1k 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 ...
A Beginner's user avatar
1 vote
1 answer
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 ...
theMayer's user avatar
  • 209
0 votes
1 answer
148 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" ...
SharePointMan's user avatar
1 vote
1 answer
30 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 ...
chitral chadda's user avatar
0 votes
1 answer
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 ...
Shaamil's user avatar
  • 708
1 vote
1 answer
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?
user31600's user avatar
0 votes
1 answer
166 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 ...
Mischa's user avatar
  • 25
0 votes
1 answer
732 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 ...
Mischa's user avatar
  • 25
2 votes
1 answer
518 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 ...
Mischa's user avatar
  • 25
1 vote
0 answers
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, ...
user2375504's user avatar
2 votes
2 answers
2k 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="...
user2987348's user avatar
1 vote
1 answer
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 ...
user20866's user avatar
1 vote
1 answer
98 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"> <...
Pieter Du Toit's user avatar
0 votes
1 answer
218 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="...
Pieter Du Toit's user avatar
1 vote
0 answers
600 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 ...
Jacob's user avatar
  • 333
1 vote
0 answers
583 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 ...
user1957059's user avatar
0 votes
1 answer
4k 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" ...
Jacob's user avatar
  • 333
0 votes
4 answers
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 ...
Mike246912's user avatar
2 votes
1 answer
134 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 ...
P. Bateman's user avatar
0 votes
1 answer
958 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" ...
Glolita's user avatar
  • 419
0 votes
2 answers
1k 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 ...
user1786107's user avatar
6 votes
4 answers
9k 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 ...
Amin Sayed's user avatar