حتما برای شما هم پیش اومده وقتی یه چیز جالب یاد میگیرید یا پیدا میکنید اونو در تمام پروژه هاتون استفاده کنید.

یکی از اون سورس های جالب که وقتی من پیداش کردم در تمام پروژه هام استفاده میکنم سورس کدی که امروز برتون میزارم این کد به شما اجازه میده  امکان پرینت از DataGridView رو به کاربران خودتون بدید.جالبی این سورس کد اینه که به کاربر امکان انتخاب ستون و سطر رو  میده .

توصیه میکنم حتما دانلود کنید.


Sometimes the user needs to print specific columns and rows (or all of them) in a DataGridView. Some cases can be as below:
  • There are too many rows in a DataGridView and there is no need to print all of them.
  • Sum of the column widths may be wider than the page width, and it is better to remove one or more columns while printing.



CodeProject Link

Pass: freecomponents.blogfa.com

VB Sample

Size:   88 KB


C# Sample

Size:   82 KB