473,507 Members | 13,597 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Datagrid auto row generation

64 New Member
Hi, i created a datagrid with 5 columns, each consists of Textbox template column. During page load i created 5 empty rows. Now during runtime i need to increase row automatically if user completed entering value of last row in datagrid using vb coding
Mar 2 '07 #1
3 1079
kenobewan
4,871 Recognized Expert Specialist
Please post your relevant code so far and provide more information about your platform. Thanks.
Mar 2 '07 #2
PerumalSamy
64 New Member
Please post your relevant code so far and provide more information about your platform. Thanks.
I am working in asp.net platform and creating web application using VB coding. I enclosed the code what i did in my webform as i mentioned earlier

If not ispostback then
Try
Dim dt as New DataTable
Dt.Columns.Add("Price")
Dim i As Integer
For i = 0 to 4
Dim Rs as DataRow
Dr = Dt.NewRow
Dr(0) = " "
Dt.Row.Add(Dr)
Next
DataGrid1.DataSource=Dt
DataGrid1.Databind()
End Try
End If
Mar 3 '07 #3
kenobewan
4,871 Recognized Expert Specialist
I assume that you are using an event to update your db after user enters values. Have you tried using this event to add a row?
Mar 3 '07 #4

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

Similar topics

6
18268
by: Shivang | last post by:
Hello Everybody, I am using Datagrid in VB.net. I don't want the auto generation of rows in the datagrid (last row shouldnt be the new row with empty values)..in addition to this the datagrid...
0
1263
by: Greg | last post by:
Hello, I'm about to write a database application and I'm wondering how to approach it. Is it worth to use the database code auto-generation (VC# 2005) in the long run? Or at some point I'll be...
2
3107
by: Scott | last post by:
Hi all. A few days ago i ask this question and got a good quick response. I tried out what they said and it worked. However I have now come to try the same thing in another program and it...
6
2000
by: Paul | last post by:
not sure if I should post this in the web controls newsgroup but just wondering if there is a way to limit the size of a datagrid and instead of cutting dat off the user will have a scroll down bar...
1
1317
by: Peter | last post by:
In a dataview, I have lots and lots of table relations that make editing each row kind of a hassle... having to look up ID numbers in 7 different tables to reference the correct items in the parent...
2
1944
by: smugcool | last post by:
hi All , I have got an idea of auto ticket generation through a program. Where it will import any new mail which will arrive at outlook and then it will auto generate a ticket id. I just wanted to...
6
2723
by: slinky | last post by:
I found the following code to transfer datagrid data to an Excel file. Is this written in C#?... I'm a vb.netter. I'm just not sure where to place the code to experiment on it. Should I place it in...
1
1876
by: Brock | last post by:
First note that I am using Framework 1.1. I have an .aspx page that is displaying a list of employees, but only the Employee Number, First Name, Last Name, and Title. It is working great. I...
1
1908
by: Brock | last post by:
Thanks in advance... (you can see a screenshot of what my form looks like currently at http://www.juggernautical.com/DataGrid.jpg - the Datalist is super-imposed in 'design view' but the DataGrid...
0
7110
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
7372
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7030
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
5623
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5041
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
4702
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
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
758
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
411
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.