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
Marvin kakuru
1.4k
355
160.1k
Adding line to datagridveiw from textbox
Jul 29 2011 5:19 AM
hi there,
your all ok i hope. Gat stuck been trying to add lines to my datagridview from various textboxes. just like you add an item to a shoping basket, but every time i click my button i only replace what i had already entered with what is in my textboxes.
any help below is the code i am using
}
DataTable dt = new DataTable();
dt.Columns.Add = ("DAY",typeof(string));
DataRow DR = dt.NewRow();
DR["Day"] = textbox1.Text.Tostring();
dt.Rows.Add(DR);
dataGridView1.Datasource=dt;
}
thanks
Reply
Answers (
4
)
Crystal Report problem in fetching data
How To Answer the Phone Call And Record the voice as wav file