TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ankit Rathore
NA
74
0
wanted to show the single column single cell
Feb 1 2010 6:14 AM
Hi Guys,
by this below code I am able to fetch the whole table,
Suppose I wanted to show the single column single Row then what will be the change in this code.
I don't want to change the select querry from that code also ,
I wanted to display the ( Row[0].Cell[0].Values only ...........)
CODE IS AS FALLOWS :- \
string conString = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + Environment.CurrentDirectory + @"\dbAccount.accdb;Persist Security Info=False;";
OleDbConnection conn = new OleDbConnection(conString);
OleDbCommand command = new OleDbCommand();
command = conn.CreateCommand();
DataSet ds = new DataSet();
command.CommandText = "SELECT * FROM Bill";
OleDbDataAdapter adapter = new OleDbDataAdapter();
adapter = new OleDbDataAdapter(command);
adapter.Fill(ds);
conn.Close();
dataGridView1.DataSource = ds.Tables[0];
Reply
Answers (
1
)
How to make installer setup of a project in VB.net
Disposing and destroying instances