473,324 Members | 2,511 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

datgrid

hello...

my problem ---

i am able to display data in datagridview in c#.net 2.0
and we have taken button's in form ----
*delete
*add
*save
when we press add button then new row show in datagridview then fill the data----------------- after that

how can i save these data.........
Oct 5 '07 #1
1 1159
Shashi Sadasivan
1,435 Expert 1GB
hello...

my problem ---

i am able to display data in datagridview in c#.net 2.0
and we have taken button's in form ----
*delete
*add
*save
when we press add button then new row show in datagridview then fill the data----------------- after that

how can i save these data.........
clicking the add button did the addition of a new row for you.

Hence clicking the save button will do the saving for you (in the database)
if you want to do it programatically, then you would have to use something like

Expand|Select|Wrap|Line Numbers
  1. tableAdapter.Update(dataTable);
cheers
Oct 5 '07 #2

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

Similar topics

0
by: Mike | last post by:
Hi, I am having problems with my program, the problem is it will not put the datagrid into edit mode. The .aspx page has the following code in it : - <asp:datagrid id="DataGrid2"...
2
by: Atif Jalal | last post by:
Hi, I would like to know if there is a way to print 'Sum' of all the values of one of the columns in a datagrid in an ASP.net application using vb.net. The Sum should be displayed all the way at...
2
by: SKG | last post by:
how can i avoid datagrid from showing sql bit values as true or false. TIA
2
by: Steve Wark | last post by:
Whats the easiest way to update data being displayed in a datagrid from SQL every 2-3 minutes. For instance, a user brings up a web page page that is monitoring an alarm list stored in a SQL...
1
by: Ruben | last post by:
I have this code DataGrid1.DataSource = inventario(cint(TextBox1.Text)) but a want sent a val string and not a int, how I do that
0
by: John Smith | last post by:
I am trying to add a HyperLinkField to a datagrid programatically, but I keep running into the error: "CS1502: The best overloaded method match for...
6
by: Neil | last post by:
Hi, is there away to disable the user clicking on the datagrid row at the bottom to create a new record , ie at moment if you click the datagrid it allows edits whihc is ok but how do you...
1
by: Alan | last post by:
Dear all, I use VB.NET to develop a DATAGIRD, in the grid, there is a ASP Button Colum, I want to delete the record by clicking the delete button However, when I use the LINKBUTTON, it can,...
4
by: Richard Fagen | last post by:
Hi, Is there a simple way to read the current value in a datagrid's cell? I know how to use Grid.CurrentCell.RowNumber Grid.CurrentCell.ColumnNumber but these give me the co-ordinates of the...
2
by: 1980dinesh | last post by:
Hi, I have a DatGrid and i have added a checkboxes as template column i have write javascipt code to check and unckeck but at button event of code behind i can't grab the (checked) true condition...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.