0

I have a DataGridView. How can i know when the vertical scroll reaches the end?

I have tried this code but it gives me inconclusive results. How can i really access some info on weather the scroll bar is at the end or not?

Community
  • 1
  • 1
meme
  • 597
  • 1
  • 10
  • 23
  • Can you tell me the purpose you need to know the scroll bar position? – Akanksha Gaur May 24 '16 at 11:15
  • This question is related to this question: http://stackoverflow.com/questions/37407869/touch-screen-datagridview-not-scrolling-to-the-end/37408214?noredirect=1#comment62324786_37408214 Ill edit this question and put some code – meme May 24 '16 at 11:18
  • @Akanksha I edited the main question. Why did you deleted your awnser? – meme May 24 '16 at 11:25
  • I thought it ws for scrollviewer... datagrid will b different..changing my answer... i thought i ws for wpf – Akanksha Gaur May 24 '16 at 11:31
  • try adding totalheight +=dataGridView1.RowTemplate.Height this might work, it did at my end – Akanksha Gaur May 24 '16 at 11:51
  • Let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/112791/discussion-between-akanksha-and-meme). – Akanksha Gaur May 24 '16 at 12:45

0 Answers0