473,387 Members | 1,705 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,387 software developers and data experts.

c# win: code of Add new button

how to create a code for Add new button..which adding a row to my data gridview.. i'm already connected to the database using postgreSQL.. thank u any response..
Nov 18 '08 #1
1 1317
balabaster
797 Expert 512MB
The easiest way is to insert the new record into the database and then call the datagrid's DataBind() method...this will cause it to refresh the data.
Nov 18 '08 #2

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

Similar topics

4
by: D. Shifflett | last post by:
Hi all, I am trying to run a Python program on my Win XP box, that I brought over from a Linux box. Of course, on Linux it works fine, but not so on Win XP. The program has a button to cause a...
3
by: Tong | last post by:
I have a simple .asp page with a text field and submit button. When it runs on a Win 2000 Professional + IE6 client machine, and the .asp page is set "anonymous access" only on IIS, the contents I...
1
by: Paul Gobée | last post by:
What is the parent element of a button (IE6 on Win, transitional mode)? Is it the BODY, the browser default stylesheet, or something else? Contra "body is parent-element": - Buttons with no...
0
by: Jorge King | last post by:
qim ----KZbS7hrbznJi92oKn Content-Type: text/html; Content-Transfer-Encoding: quoted-printable <html><head><style type=3Dtext/css>.eyebrow { FONT-WEIGHT: bold; FONT-SIZE= : 10px;...
4
by: Hardy Wang | last post by:
Hi, I have a win form application, when a button is clicked, a lengthy operation will be triggered. During the time program is still running, this application seems not to be able to response to...
6
by: Dirc Khan-Evans | last post by:
I have a problem with a Session variable that dissapears after a postback of one of my pages. This only happens on WIn 2003 servers.. it is fine on my XP dev box. This page opens in another...
1
by: MikeY | last post by:
Hi Everyone, I'm having a problem trying to place text with in my custom buttons. The problem is that I'm trying to display my text just as if it were a regular 'win' button, I have tried using...
3
by: =?Utf-8?B?Tmljaw==?= | last post by:
Hi all, I have web page with one button and also i have a smaill win form progarmm. so what i want is that the user click the web button then it will start run this win form, (win form program...
8
by: active | last post by:
Guess I'm looking for someone who likes to work difficult puzzles. I can't seem to ever retrieve a palette handle from the clipboard. Below is a simple test program that demonstrates the...
4
by: Jeremy | last post by:
I have a small block of code that uses DllImport tags to call methods in a dll written in C. I'm not sure how the dll works internally, but when I call some of these methods from a windows console...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...

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.