473,472 Members | 2,264 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

how to add rows dynamically to a gridview in asp.net

2 New Member
Hi,

I have gridview with all columns as template columns and i have controls in that like dropdownlist and textbox. whenever the user sees it has to show one row and allow him to select from the dropdown list.my problem is whenever the pageloads it is showing no rows as it never contains any source.regarding this any answers are great helpful to me.even whenever the user clicks for selection it has to add one more row to the gridview.

Thanks and Regards,
Rajesh
Apr 13 '07 #1
4 12880
gomzi
304 Contributor
Hi,

I have gridview with all columns as template columns and i have controls in that like dropdownlist and textbox. whenever the user sees it has to show one row and allow him to select from the dropdown list.my problem is whenever the pageloads it is showing no rows as it never contains any source.regarding this any answers are great helpful to me.even whenever the user clicks for selection it has to add one more row to the gridview.

Thanks and Regards,
Rajesh
what do you mean by adding a row? are you talkin of paging?
Apr 13 '07 #2
gomzi
304 Contributor
Hi,

I have gridview with all columns as template columns and i have controls in that like dropdownlist and textbox. whenever the user sees it has to show one row and allow him to select from the dropdown list.my problem is whenever the pageloads it is showing no rows as it never contains any source.regarding this any answers are great helpful to me.even whenever the user clicks for selection it has to add one more row to the gridview.

Thanks and Regards,
Rajesh
check this out...
http://www.dotnetwatch.com/page334.aspx
Apr 14 '07 #3
thaj
3 New Member
Hi,

I have gridview with all columns as template columns and i have controls in that like dropdownlist and textbox. whenever the user sees it has to show one row and allow him to select from the dropdown list.my problem is whenever the pageloads it is showing no rows as it never contains any source.regarding this any answers are great helpful to me.even whenever the user clicks for selection it has to add one more row to the gridview.

Thanks and Regards,
Rajesh

i think inserting a new record from the grid?
Jul 16 '07 #4
teju
34 New Member
Hello,
Try the following link
http://fredrik.nsquared2.com/viewpost.aspx?PostID=155
Jul 16 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: bryan | last post by:
Hi all, I am working on a .net 2.0 web app. On page load I display a gridview with a drop down list (Employees), when the user selects from the drop down list, the grid view is filled with...
2
by: Blasting Cap | last post by:
I've got a gridview (that I converted over from a datagrid, which had been working properly), that is doubling up the number of rows returned. When it was running as a datagrid, the same code sent...
1
by: Dev147 | last post by:
I need to dynamically create a GridView that contains a variable number of columns that must be bound to an underlying collection in an entity class. These columns represent days from a specified...
2
by: gnewsgroup | last post by:
I am new to the asp.net Table web control. I am using it to customize my presentation of data. I cannot implement the idea with DataGrid or GridView. Basically, I would like to have something...
2
by: Michael | last post by:
It seems that a gridview allows us to delete only a single row at a time. How to extend this functionality to select multiple rows and delete all of the selected rows in a single stroke? just like...
1
by: COHENMARVIN | last post by:
I have a gridview and I need to know the number of rows in it. I find the Page_load and the Gridview_Load events are too early to find out the number of rows. I can use the Gridview_databound...
0
by: Andy B | last post by:
I need to take an existing GridView that connects to a database and gets rows from a table and force it to show x rows in the insert mode. This is what should happen: 1. There is a TextBox in...
7
by: =?Utf-8?B?V2ViQnVpbGRlcjQ1MQ==?= | last post by:
I'm adding subheadings to a gridview. Each sub head has a few link buttons. I'm adding the controls in the rowdatabound event code follows: sorry about the length here. I have to be missing...
5
AnuSumesh
by: AnuSumesh | last post by:
Hi All, I am using <asp:Gridview> to display my data. I am adding columns and rows dynamically. I am facing following issues: 1. I want scrollbars around the gridview and for this purpose i...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.