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
Riyaz Kalva
NA
26
26.7k
How to bind data to gridview's textbox column
Feb 27 2013 4:24 AM
Hi all.
I am new to windows application development.
I am using gridview that has all DataGridViewTextBoxColumn.
My code for binding the data to the grid view in Form_Load() is :
private void Form1_Load(object sender, EventArgs e)
{
cn = new OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=D:\\Bill\\dbBill.accdb");
string query = "Select Sr,Desc,HSNCode,Qty,Rate,Qty*Rate as Amount from BillDetail";
cn.Open();
cmd = new OleDbCommand(query, cn);
da = new OleDbDataAdapter(cmd);
ds = new DataSet();
da.Fill(ds);
cn.Close();
grdDetails.DataSource = ds;
}
But I am not getting the records.
Please help.
Thanks in advance.
Attachment:
bill.rar
Reply
Answers (
5
)
IQ
Twodimensional arraylist using split function in gridview