Search an object in Dababase
- Read more about Search an object in Dababase
- 7 comments
- Log in or register to post comments
- 55 views
private void DataGridvie_selected(Object sender,EventArgs e)
{
DataSet da=new DataSet();
int i=datagrid1.selectedIndex;
int empidval=ds.Tables["emp"].Rows[i][0].ToString();
SqlConnection conn=new Sqlconnection("conn string");
conn.Open();
This tutorial is part of Database Programming Made Easy Series.
With few modification from the previous tutorial you will learn how to fill combo box with data.
I am using Datasets and Data Adapters to connect to our database.
Definition:
“When an unusual, irregular, abnormal or nonstandard condition arises in a sequence of code at run time this phenomenon is referred as Exception handling”
An exception is a runtime error.
In Object Oriented, an exception is an object that is used to describes an exceptional condition that has occurred in a piece of code.
Definition:
In java programming language, an interface is an abstract, conceptual or concrete type that is used to specify an interface.
How to use an interface:
It means that, using interface, we can specify what a class must do, but not how it does it.
Inheritance is a process which allows inheriting the methods and properties of parent or super class.
OR
Deriving an object from an existing class (super class)
In this tutorial you will learn how to program with Java. It has a rich of information to be educated well with Java.
All you need is to read this tutorial in step by step process to familiarize yourself with Java programming. Do not skip on every topic so you will not get confuse.