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
Ankit Shukla
NA
681
116.9k
Foreach loop in datagrid
Mar 9 2017 2:15 AM
Hello, I need to select n-1 rows from datagrid and my code is:
foreach (DataGridViewRow row in dataGridView1.Rows)
{
foreach (DataGridViewCell cell in row.Cells)
{
pdfTable.AddCell(cell.Value.ToString());
}
}
from where I should change to select all rows except last row..
Thanks in Advance.
Reply
Answers (
2
)
How to code to introduce a switch in HOMEGENIE in C# program
Convert string to GUID and GUID to old string. vise versa