Forms Data Controls :: Create A SpreadSheet Like Gridview?
Feb 16, 2011"Whether it is possible to create a spread sheet like GridView"
If so what could be the approach to create Such an Editable and Customizable Grid...
"Whether it is possible to create a spread sheet like GridView"
If so what could be the approach to create Such an Editable and Customizable Grid...
I need to display 144 records in some form of Grid/Spreadsheet view. Currently I have the records being displayed in a Gridview, however this means that if the user needs to make multiple changes to the data that is being displayed then they would have to hit the edit and then update for each row. What I would like to be able to do is have them Edit whatever rows and columns they need to and then have them click update once. Is this possible, if yes then how?
View 7 RepliesI have the following code to 'save' a GridView on a page as an excel file, but it pops up a dialogue screen asking the user to view or save.
[Code].....
I am trying to work through a sample of exporting a gridview to an excel spreadsheet.I found the code below on the internet. I pasted it into a test.aspx page. I need to establish a connection to the NorthWind Database. Or if you have a better example of exporting a gridview to excel, share. Here is the location of the northwind.mdb on my pc: (and is this sample looking for an access database or a sql database...what is the filetype of a sqlserver database?) See code below
c:Program FilesMicrosoft Visual Studio 8SDKv2.0QuickStartaspnetsamplesdataapp_data orthwind.mdb
[Code]....
I have used to code below successfully to export a gridview to an excel spreadsheet, however when i use it for a gridview with data from a different table i receive the following error:
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
The thing is it works locally fine but when i upload to my shared server i receive the error above?
how to resolve/troubleshoot this?
aspx file:
[Code]....
code behind button click:
[Code]....
On an .aspx page in a web site I need to retrieve some data from a sql server database and, instead of displaying it in a Gridview, I need to put the data in a spreadsheet and present the user with a Save As dialog.
I'd prefer to do it without using the Office / Excel / Interop com object - so, from what I've read so far, I can do this by returning XML data from SQL Server?
Normally I get data from SQL Server and populate a dataset or datareader with it - and then use this as the Datasource of a GridView.
If I run this in SQL Server ...
Code:
SELECT UserID, UserName FROM tblUsers FOR XML Auto, Root('Users')
It produces this ...
Code:
<Users>
<tblUsers UserID="1" UserName="Steve" />
<tblUsers UserID="2" UserName="Andrea" />
<tblUsers UserID="3" UserName="Zebedee" />
</Users>
So, first question - how do I get the data from SQL Server into my .aspx page? (All data access is done with stored procedures - so, from my data access class normally I create, for example, a SQLDataReader and populate it by calling a stored procedure. What object would I populate with the results of a stored procedure that contains a select statement with 'FOR XML Auto'
Then, assuming I get the XML into the .aspx page - how do I get it into a spreadsheet so that there are two columns called UserID and UserName and 3 rows with 1, 2 and 3 in the first cell and Steve, Andrea and Zebedee in teh second cell?
I am new to website development, so please be gentle!I am having difficulties in stopping a hyperlink to a Excel spreadsheet on my page from being cached by our proxyserver.The spreadsheet is updated on the web server in the background everytime a user updates a sql record, however because the hyperlink is to a static name, when the user clicks on the link, often a older version of the spreadsheet is opened.I have tried many caching parameters without joy and was wondering if it is possible to create a dynamic hyperlink that always looks for the latest version of the spreadsheet ?For example if I append onto the spreadsheet the date and time everytime the spreadsheet is updated, will the hyperlink be able to find it ?All my website code has been written in asp to date.
View 3 RepliesI have a gridvidew (GV2). I want the user to be able to export the contents of this gridview to an excel spreadsheet for offline processing.
Here is my subroutine:
[code]...
On clicking the ExcelButton I get the error message:
Control 'GV2' of type 'GridView' must be placed inside a form tag with runat=server.
The control GV2 is in fact inside:
<form id="form1" runat="server"></form>
I want to create a 3x3 Gridview. How do I do it?
View 3 RepliesI have data in my database and I want one column of the database to be shown as a ckeckbox so the user can select and deselect it.
The colums in my database is called "sendEmail", The values are stored as a "int" with values of 1 and 0. How do I show the value of 1 as checked and the value of 0 as unchecked in a gridview.
is it possible ontextchange event create new row in asp.net c#.if it is possible plz let me know
View 5 RepliesI have a grid like below. Here I am getting problem with "Hours Last 52 Weeks". Here I have to use this text over the grid headers like the below screen. How can I use this? Highlighted in "Yellow" is the actual text.
View 2 RepliesI have created an array ot GridView.
[Code]....
But system throw error: Object reference not set to an instance of an object.
I now need to create a Gridview using C# code behind and using PlaceHolder to render in ASPX page. So far everything is Okey, pager and data inside database also can pull out to gridview. But the problem is no sorting function here, below is my code. GridViewTemplate .cs this class is for add data into Gridview ItemTemplate and HeaderTemplate, I modify from here http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.templatefield.templatefield.aspx
public class GridViewTemplate : ITemplate
{
private DataControlRowType templateType;
[code]...
I'm building a Gridview and set it AutoGenerateColumns = true and bind it with a DataTable, but I want to create a new row in that gridview during OnRowDataBound (to separate the gridview to many parts). How can I do this?
View 2 RepliesIn one of my application, I have around 2000 records which i am displaying in gridview with normal paging.
Now I want to change this paging facility and would like to show a "more" button at the footer(just like [URL] has). The moment user clicks it, the next set of data will be retreived. This will go on till all the records are fetched.
i am creating a grid view at run time.now i want to create controls inside the gridview at run time itself,and how to Bind/Eval it.
View 5 Repliesi want to create a gridview , so as to click the row .. I want it just like the gmail stuff
View 2 RepliesI'm trying to create a gridview with a hover menu:
[Code]....
This works just fine, butttttttttt, I want the hover menu to have an extensive description of the record, namelly ID, message, links to uploaded files, print record button etc.
This doesen't work with the hover menu because when the mouse leaves the targetcontrolid the panel disapears.
So my question is:
Is there a way keep the panel hovering until you change to another record?
how to create a gridview template
with text box
From
To
Company
Profile
[Code]....
FromToCompanyProfile
[Code]....
xml File
[Code]....
i want to create a dynamic gridview with commandbutton in each row. how to impliment. I have alredy implimented dynamic gridview at runtime. but now i want a command button in each row. actully i want to update the selected row in database.
View 2 RepliesI have a gridview with data. Now I need to create the textbox in gridview on the click event of outside button from gridview. Its working. but in gridview Edit button is not working.
View 5 Repliesi dont like the inbuilt paging event used by gridview.i want to make an attractive pager like the one in [URL]
View 4 RepliesCreate a gridview for Product Comparision?
View 4 Repliesi want to create empty gridview in c# web application,having 4 columns,columns are editable,final column contain buttons for save,insert new entry n delete,on save button clicking datas inserted into the column fields are inserted to database,on delete button clicking specified row is removed and on add new entry button clicking another empty rows with above fields are appended below.
View 3 Replies