15,921,351 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 8655072 (Top 4 by date)
Member 8655072
9-Jul-12 7:33am
View
Thks Sandeep for answering but if i do like this
for (int row = 0; row < numRows; row++)
{
dataGridView1.Rows.Add();
recLeft = numRec - (numColumnsForWidth * row);
for (int col = 0; (col < recLeft) && (col < numColumnsForWidth); col++)
{
this.dataGridView1.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
dataGridView1.Rows[row].Cells[col].Value= lstImage[0];
}
}
where i am adding the row everytime for row loop the putting values of each col in that row.
the problem is same.
Member 8655072
26-Jun-12 5:57am
View
sandeep this is the solution finally i implemented to view 10 records per page in datagrid.
Member 8655072
25-Jun-12 11:12am
View
Thax Sandeep, it gave me direction to implement my solution. It is working now
Member 8655072
25-Jun-12 10:56am
View
I have tried to do the paging by implementing next and prev button and on every click i tried to fill the data grid with corresponding 10 results. It displays first 10 results and then for next 10 it says
Index was out of range. Must be non-negative and less that the size of the collection
Parameter name: index
can you pls guide me...how to check this limit