Forms Data Controls :: GridView Alternative - Facilitating Data Input

Mar 5, 2010

I have been using Gridviews throughout a website I am currently building, however one particular requirement is to display two tables side-by-side that butt up against each other for the purposes of data entry. One person inputs numerous entries on the LH table whilst a different person will respond to one or more rows in any particular order (ie row 2 may addressed but row 1 might stay blank for a period of days). As far as I am aware, a GridView (or two) won't suit this requirement for the reason (from my still new understanding of GridViews) of not providing the ability for a 'respondee' to address any row in any particular order. Whilst I could add a button to each GriView row which displays a detailsView/FormView horizontally in line, I would still have to populate the Gridview with empty rows for those rows not addressed plus this 'fudging' just doesn't bode well concerning DB management.

It just seems adding two asp tables side by side then somehow working out how to automatically present a new row for data entry for the left hand table and creating a second table being the same size as the first (according to its number of rows) would be the way to go, then the task of data gathering/uploading to the DB. How best address the requirement - there maybe better ways for facilitating data input as opposed to using side-by-side controls, however it is the clients request. Also I don't want to go expelling copious amounts of time to fully customize a gridview when simply creating some sort of dynamic table would be sooo much quicker and easier for this once off. I have tried some searching, however not knowing where to start is problematic as 99% Google results return GridViews (as you would expect).

View 3 Replies


Similar Messages:

Forms Data Controls :: Creating Alternative Text For URL In Gridview

Jun 30, 2010

I created a database with ID, Title, Content, Date, ImgLnks, Image and Imagecaption and i'm using ObjectDataSource to populate the data. The field "ImgLnks" displays a new blank window with URL. This column is entered as text, inserted into the database and displays as clickable link in the gridview. My question is, is there a way that I can put an Alternative Standard Text in this column instead of displaying the clickable link like [URL] etc.? Text like, "Visit Page".

View 4 Replies

Forms Data Controls :: Gridview With CSS For Alternative Page (Header Works Fine)

Jul 13, 2010

Did you have any issue to show background images in a gridview with IIS 7. I've exactly applied this [URL] and I've no idea why, my css works for the header but not for:

PagerStyle-CssClass="pgr"
AlternatingRowStyle-CssClass="alt"

The alternative row has no background image and the pager too but it works for the header. But when I browse the website online from my laptop, without IIS it works fine. When I check web developer tools from i.e., I've the backround image written in the css so it should come up.

View 1 Replies

Forms Data Controls :: GridView In Excel - Alternative Row Style Color Is Crossing The Boundaries From Right Side

Feb 10, 2010

data the exporting from grid to excel sheet correctly but the alternative row style color is crossing the boundries of excel sheet from right side.

View 1 Replies

Forms Data Controls :: Input Value To Textbox And Displaying Data In Gridview?

Feb 4, 2011

I am doing a search function where when user enters specific value (either by keying product name or product code) into textbox, data will be displayed using gridview.

However i have problems displaying it in gridview.

Below is my code:

[code]...

View 4 Replies

Forms Data Controls :: Dropdownlist Shows Items For Second Input As Well As First Input?

Nov 11, 2010

I m using a dropdownlist from sqldatasource based on input from listbox like this-

[Code]....

It works very much fine when i select listitem from listbox first time. But when i select listitem from listbox second time, my dropdownlist shows items for second input as well as first input.dropdown should not show items based on first input when i populate it second time.

View 4 Replies

Forms Data Controls :: How To Create Hidden Input Inside Gridview

Mar 16, 2010

I want to create input inside gridview, the id of the input is set by me. I do want to use HiddenField control because when generating the id of the control, it will set id to gridview_ctrl.....

The input looks like this: <input id="myid01" value="myvalue" type="hidden">. Note that id is generate by me in the code behind.

View 3 Replies

Forms Data Controls :: Two Input Textboxes In Gridview One Textbox Cannot Be Greater Than The Other

Feb 4, 2010

I am having difficulty with getting the values from two textboxes to passed the values to one function and determine that one textbox cannot be greater than the other textbox, then i can issue alert message.

For opener, i do not want onclick issue.

[code]....

View 1 Replies

Forms Data Controls :: Use A Gridview For Insert Of Multiple Row Input From User?

May 17, 2010

i want to use a grid view for data insert user can insert more than one row.

View 4 Replies

Forms Data Controls :: Persist HTML Input In GridView On Post Back?

Nov 11, 2010

I have a GridView control that has an ItemTemplate that contains an HTML radio button. In my code behind I am querying a database, retrieving a column of values, and then binding the list to the GridView. My problem is that the radio button that I select is not being persisted on post back. I have tried using an ASP RadioButton rather than an HTML control, but when I do that all of the radio button can be selected at the same time (i.e. like check boxes). how to persist the radio button that is selected in this scenario?

[Code]....

View 2 Replies

Forms Data Controls :: How To Force Control Input Format In Decimal Field In GridView

Mar 6, 2010

when updating a decimal field in a GridView all is fine when using e.g. "2.3" ("." to separate the fraction!)

However, when using "2,3" I get e formatstring exception!

I tried "regularExpressionValidator/RequiredFieldvalidator" but did not succeed! Tried also with FormatString like {0:n}.....

Questions:

is this controllable by "Culture / UICulture" in web.config (played with it without success!

How do I best check for correct input i.e. force "." as separator

Can I use the "DataFormatString" property for the appropriate GridView field (like {0:n}) ......

[code]....

View 1 Replies

Forms Data Controls :: Choose Selectedindex In Gridview / Input String Was Not In A Correct Format

Dec 27, 2010

I'm trying to populate a detailsview according to the selected row in a gridview. How do you choose what the selectedindex is? For example my sql statement is:

SELECT [Assignment_ID], [Staff_ID], [Client_ID], [Day], [Month], [Year], [Start_Time], [Job_Type], [Billable_Time], [Travel_Time], [KM_Travelled], [NC_Time], [SP_Time], [Billed], [Description] FROM [Assignment] WHERE ([Assignment_ID] = @Assignment_ID)

and @ assignment_ID is gridview.selectedindex

but when it runs I get the error:

Input string was not in a correct format.

Description:

An unhandled exception occurred during the execution of the current web request. review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.FormatException: Input string was not in a correct format.

Source Error:

[Code]....

Stack Trace:

[Code]....

View 3 Replies

Forms Data Controls :: Sum The Rows In A Gridview - Error / Input String Was Not In A Correct Format?

Jun 8, 2010

I am trying to sum the rows in a gridview. It works find except when I do an update. Then I get the following error:Input string was not in a correct format. The error occurs when it its the Total1 +=gr1.cells(5).text or the Total2 area. Here is my code to sum the rows:

[Code]....

View 7 Replies

Forms Data Controls :: Gridview Row_databound Calculation Error - Input String In Wrong Format?

Dec 7, 2010

I have a gridview in which i have itemtemplates and label controls having data from sql server.

I have two fields say quantity and units and in third field i want their product. I m trying in rowdatabound event like this-

[Code]....

Here my third field is netvalue.

It is throwing error-

Input string in wrong format.

How can i achieve this?

View 5 Replies

Forms Data Controls :: Gridview With Calcu Rows / The Format Of The Input String Is Incorrect Error?

Oct 5, 2010

I have a gridview with this form

ID_student -------exam_mark1 ------exam_mark2-----average

to calculate the average score I used this code

[Code]....

but it returns me the following error: The format of the input string is incorrect.

View 3 Replies

Forms Data Controls :: Gridview Update - Error System.FormatException: Input String Was Not In A Correct Format.

Jan 13, 2010

I have a gridview to update soem records, it works on my development laptop but when i use it on the webserver i get the following error:

Exception Details: System.FormatException: Input string was not in a correct format.

Source Error: [Code]....

Stack Trace: [Code]....

I have another page with a gridview that does exactly the same but from another table, and that works both on the development laptop and the webserver.the code is:

[Code]....

View 2 Replies

Forms Data Controls :: Creating A Total Column Gridview Error - Input String Was Not In A Correct Format

May 7, 2010

i am creating a total column which multiplies the price by quantity in my gridview but am stuck on converting the input strings.

The price is stored as a decimal in my database and the quantity is a nvarchar.

i am receiving this error:

Input string was not in a correct format.

Description:

An unhandled exception occurred during the execution of the current web request. review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.FormatException: Input string was not in a correct format.

Source Error:

[Code]....

heres my row databound event:

[Code]....

View 8 Replies

Data Controls :: How To Calculate Number Input By Each Row In GridView

Dec 12, 2013

How to calculate input values by each row in gridview ?

Example  input quantity is 10, then generate the serial number for each row quantity is 1  

Actual expect result 

View 1 Replies

Forms Data Controls :: Alternative To Using Findcontrol In Listview Itemdatabound Event?

Apr 16, 2010

I stumbled into a problem which is that FindControl will only return a control in the ListView after the listview has been databound. Here is the code which is not working, and I'm getting the "Object reference not set to an instance of an object error" when I try to add the attribute to the control:

[Code]....

Any ideas on how I can elegantly fix this?

View 3 Replies

Forms Data Controls :: Display Alternative Text When ListView Is Empty?

May 31, 2010

I have a ListView control that might be empty sometimes. I would like to show a text message like: "No items to Show" when the ListView is empty.

I have read the FAQ of this forum. This issue is not there.

View 2 Replies

Data Controls :: GridView Column Width Changes As Input Text In JQuery Quick Search

Jan 10, 2014

I am using jquery quicksearch to filter a gridview.  As i enter the search text in a text box the column width of the body of the gridview keeps changing and does not align with the header width for the respective column.  How do I lock the column width of the gridvew so it remains unchanged?

View 1 Replies

Forms Data Controls :: Copy & Paste Data From Excel To Input Screen - C#

Apr 24, 2010

Is it possible to Copy & Paste Data from Excel to asp.net page and if user click save it save in database table. Excel steet

id name age
1 raj 10
2 bill 15
3 chris 14

Asp screen textbox or any other control ID Name age Paste above data to asp screen as input.

View 2 Replies

Forms Data Controls :: Syntax For Passing ListView Data To SQL Input Parameters?

Dec 11, 2010

I have a ListView displaying data from Table A using a SqlDataSource.

I want to take the displayed data (and these are just the standard columns representing fields in Table A) and store them in Table B using a Stored Procedure

(The scenario is much more complex but I've left out anything not relating to this exact problem).

I've added a Button to the ListViews ItemTemplate and I'm using OnItemCommand to create a Sub for its "Click" in the Code Behind.

This is a simplified chunk of the SQL I'm using to insert the ListView's fields into Table B using the Stored Procedure "InsertCart":

[Code]....

Where I've highlighted "Description" in the last line. In a GridView, this would be enough. Description is a Column name in Table A and B and iy's an Item in the ListView. But I'm realising that, with ListView's, the data binding is not as "automatic" as a GridView. Just using the columnname is not enough.

What do I use instead of the word Description to reference this column in the Parameter?

View 2 Replies

Forms Data Controls :: How To Input Data From Textbox To Unknown Size Of Array Or Arraylist

Sep 19, 2010

I am fresh to asp.net. I m using vb to write it. Could someone who is professional guide me? I want to input data from textbox to "unknown size" array or arraylist, and bind it to gridview. I have more than 1 data to input. Do i need to use loop to bind?

View 7 Replies

Forms Data Controls :: Users To Input Data In The Table?

Nov 1, 2010

I would like to create a table (7 rows 15 columns) which should allow user to input the data and finally data table should be emailed. Whats the best way to do it?

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved