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
Yves Larock
NA
88
1.4k
datagridview did not show all data of database.
Jan 20 2016 5:04 AM
datagridview did not show all data of database it only show one data.
DataTable dt = new DataTable();
dt = blcat.getallcategory();
if (dt.Rows.Count > 0)
{
dataGridView1.Rows.Add();
dataGridView1.Rows[i].Cells["calcategory_id"].Value = dt.Rows[0]["category_id"].ToString();
dataGridView1.Rows[i].Cells["calcategory"].Value = dt.Rows[0]["category_name"].ToString();
i++;
}
Reply
Answers (
7
)
Retrieve email from twitter c#
web application deployment