spgridview

Sorted gridview selects wrong row

别说谁变了你拦得住时间么 提交于 2019-12-22 12:45:44
问题 I have a gridview (actually a SPgridview) And i made the columnname clickable so the users can sort the rows using the data. And that works fine. The problem occurs when users try to select a row after they sorted the data. I can see that the gridview kinda "forgets" how the rows were sorted and selects the row that was at the clicked index before it got sorted.. How do i fix that? I tried sorting the row again after the user selects a row, but that doesnt seem to work. And should the

SPGridView, data and correct method of ensuring data is safe

你说的曾经没有我的故事 提交于 2019-12-12 08:16:01
问题 I am using an SPGridView to present some data, and have enabled the filtering ability which works very well. Until you choose a particular item in the data to filter on... The data item in question has an apostrophe in the string( e.g. "this is richards' string"), which causes the post-filter-application page load to die with the error: Syntax error: Missing operand after 's' operator. Obviously the data is not automatically made safe... The data is in a datatable, and the SPGridView is fed

Using Sharepoint GridViews on server without SharePoint installed

非 Y 不嫁゛ 提交于 2019-12-11 06:33:01
问题 I have a web application that needs to pull data from a Sharepoint list and display it with the same "look and feel" as a sharepoint list, but on a different web site. http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webcontrols.spgridview.aspx The web application is not installed on a server with the SharePoint foundation. The sharepoint DLLs were naturally missing, but I have copied them from the server where SP is installed and added them to my project. The page compiles now,

SPGridView, data and correct method of ensuring data is safe

萝らか妹 提交于 2019-12-03 17:35:44
I am using an SPGridView to present some data, and have enabled the filtering ability which works very well. Until you choose a particular item in the data to filter on... The data item in question has an apostrophe in the string( e.g. "this is richards' string"), which causes the post-filter-application page load to die with the error: Syntax error: Missing operand after 's' operator. Obviously the data is not automatically made safe... The data is in a datatable, and the SPGridView is fed using an objectdatasource using the datatable. Whats the best, or correct, method to ensure the data is