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
sagar mhaske
NA
1
646
I want calculation of next cell when i click in first cell
Oct 2 2015 3:23 AM
i want calculation of next cell when enter on first cell in datagridview
private void gvExpensesTaxses_CellEnter(object sender, DataGridViewCellEventArgs e)
{
decimal per;
decimal tamt;
foreach (DataGridViewRow row in gvExpensesTaxses.Rows)
{
per=Convert.ToDecimal(row.Cells["%(Per)"].Value);
tamt=Convert.ToDecimal(txtTotalAmt.Text);
decimal t =Convert.ToDecimal(tamt) / 100 * Convert.ToDecimal(per);
row.Cells["Amt"].Value = Convert.ToDecimal(t).ToString();
}
}
I get erroe like'Input string was not in a correct format.'
in this line Plz help me ...........................................
per=Convert.ToDecimal(row.Cells["%(Per)"].Value);
Reply
Answers (
0
)
data exchange between notepad and excel
webforms of c#.net