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
habib ullah
NA
229
14.4k
object cannot be cast from dbnull to other types
May 15 2017 3:22 AM
when we run the program then show the following error
object cannot be cast from dbnull to other types
i vahe calculate the datagraid view cell
int sum = 0;
for (int a = 0; a < dataGridView1.Rows.Count; a++)
{
sum += Convert.ToInt32(dataGridView1.Rows[a].Cells[2].Value);
}
label5.Text= sum.ToString();
}
Reply
Answers (
4
)
how to view image in crystal report from column image type?
How to Insert & Update a certain Fileds in Tbl c#