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
andrei hooba
NA
63
24.1k
Difference operation in datagridview
Mar 11 2012 3:47 PM
hello,
how can i make a difference between column 3 and 2, and the result to be writen to column 4 ?
i tried with :
int n = dataGridView1.Rows.Add();
dataGridView1.Rows[n].Cells[3].Value = (int)dataGridView1.Rows[n].Cells[2].Value - (int)dataGridView1.Rows[n].Cells[1].Value;
but no result.
any idea?
ty
Reply
Answers (
3
)
data grid
Linq syntax transfer