15,921,840 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 Cho Lay (Top 10 by date)
Cho Lay
10-Dec-14 5:06am
View
I am now ok thanks :D
Cho Lay
10-Dec-14 4:40am
View
when i changed like that
this.vScrollBar1.Maximum = this.dgvItem.Rows.Count ;
but not ok because vScroll and DGV are fit so i can't scroll :)
Cho Lay
10-Dec-14 4:34am
View
if not I have no idea more. So please edit my code.Please help me. Thanks
Cho Lay
10-Dec-14 4:10am
View
Yes i already write code like that :
public frmItemList()
{
InitializeComponent();
this.vScrollBar1.Minimum = 0;
this.vScrollBar1.Maximum = this.dgvItem.DisplayRectangle.Height;
this.vScrollBar1.LargeChange = vScrollBar1.Maximum / vScrollBar1.Height + this.dgvItem.Height -10 ;
this.vScrollBar1.SmallChange = 30;
this.vScrollBar1.Value = Math.Abs(this.dgvItem.AutoScrollOffset.Y);
}
private void frmItem_Load(object sender, EventArgs e)
{
dgvdatabind();
this.vScrollBar1.Scroll += new System.Windows.Forms.ScrollEventHandler(vScrollBar1_Scroll);
}
private void vScrollBar1_Scroll(object sender, ScrollEventArgs e)
{
dgvItem.FirstDisplayedScrollingRowIndex = vScrollBar1.Value;
//if (dgvItem.FirstDisplayedScrollingRowIndex + dgvItem.DisplayedRowCount(false) < dgvItem.Rows.Count)
//{
// dgvItem.FirstDisplayedScrollingRowIndex += dgvItem.DisplayedRowCount(false);
//}
//else
//{
// dgvItem.FirstDisplayedScrollingRowIndex = dgvItem.Rows.Count - 1;
//}
}
but i get error when i scroll vScrollBar.
I don't know what wrong and what need my code :(
Cho Lay
10-Dec-14 3:04am
View
When changed my code as below
private void vScrollBar1_Scroll(object sender, ScrollEventArgs e)
{
//dgvItem.FirstDisplayedScrollingRowIndex = vScrollBar1.Value;
if (dgvItem.FirstDisplayedScrollingRowIndex + dgvItem.DisplayedRowCount(false) < dgvItem.Rows.Count)
{
dgvItem.FirstDisplayedScrollingRowIndex += dgvItem.DisplayedRowCount(false);
}
else
{
dgvItem.FirstDisplayedScrollingRowIndex = dgvItem.Rows.Count - 1;
}
}
i have not error when scroll but scroll down is ok but scroll up not load datagried view.
what need my code for scroll up. please Give me instruction and Solution.
Cho Lay
9-Dec-14 5:23am
View
hScrollBar_scroll() is ok but vScrollBar_Scroll() have some problem
if i drag vScrollBar rise error as follow:
"Specified argument was out of the range of valid values.
Parameter name: value"
i don't know how to solve.Please help me and Give me instruction.Thanks
Cho Lay
4-Dec-14 3:38am
View
Thanks
your answer is ok.
Cho Lay
4-Dec-14 2:36am
View
Thanks
but My project is window project So Please give me solution for window form
Cho Lay
26-Aug-14 3:59am
View
Thanks for your reply. My project is Window application using C#. I already installed "Microsoft Report viewer2010" into client machine. Need to install 'crystalreportviewers13' to client' pc?
I already add reference dll's CrystalDecisions.CrystalReports.DesignCrystalDecisions.Enterprise.Viewing.ReportSource in my window project. But I don't know how to refer dll into client pc.
Please explain me... thanks..
Cho Lay
26-Aug-14 0:00am
View
No, I mean I had installed CRRuntime_32bit_13_0_2 .msi into client' machine.
Show More