How to make the vertical scrollbar of a gridview scroll to the bottom on first display after sorting a column in accending order - vb.net

Am working on a chat application and am using a gridview to display the chat messages I want the scrollbar to be scrolled automatically to the bottom so as to show new messages. I just want the gridview to show the last row after sorting have taken place

Try using Control.Focus() or Control.Select() on of the items in the last row of your GridView. If this doesn't solve your issue, please show more of your code.

Related

What scrolling / list control is used on Windows 10 store?

I'm playing around with Windows Universal App development. When looking at the Windows 10 Store App, I noticed a scrolling list control as shown in the below screenshot. Clicking the right arrow will shift right by a certain number of elements. Likewise on the other side, clicking the left arrow will shift back.
Is the scrolling control in the Store App a standard control or something custom made?
I'm aware of things like the ScrollViewer, but that just adds a scroll bar.
I created this by the following:
Grid with 3 columns with widths 3*, 94*, 3*
First column contains Button stretched vertically and horizontally to fill the grid and a ListView
Second column contains nothing
Third column contains Button stretched vertically and horizontally to fill the grid and a ListView
Button clicks fire events to calculate how many places to scroll left or right and then uses ListView.ScrollIntoView to scroll the items into view

Scroll automatically to a control inside scrollviewer

I have a scrollviewer in page which shows data vertically, and it contains controls like grid, stackpanel and listbox.
Listbox contains items with expanderview. On click of expander view header it expands, I just want that whenever it expands its content get visible in page. Means i have to automatically change scroll position and make visible a Listbox selected control.
Is there any way?
There is a way to manage it Programatically with use of Timer. When the timer is triggerd, we call the timer_Tick event handler, which scrolls to the current index and marks it as selected, and then updates the index. After the last item is highlighted the index is reset to the first item. You can find useful sample here Auto-scrolling ListBox for Windows Phone
You need to calculate the offset where you want to scroll to, and then use ScrollToVerticalOffset(your_offset_value) method.
Have a look over here : How to use ScrollViewer.ScrollToVerticalOffset?

VB.NET FlowControlPanel scrolling automatically when it shouldn't

Very strange issue in VB.NET. I have a simple WinForm that has a FlowControlPanel that takes up the entire form except for a status bar at the bottom. If I add enough items to my panel so that a vertical scrollbar is needed, then scroll to the bottom, anytime I update my status bar the panel automatically scrolls back to the top. Anyone ever see this?
Thanks,
Mark

How to display data in gridview like excelsheet in iPad application

I want to display data in gridview like excel sheets in iPad application.I tried it using Uitableview with custom cells but there are many restrictions like cannot scroll by touching table etc.I want to display data in UItableView having more than 25 columns and more than 70 rows.I tried using custom UItableviewcell but want to overcome following limitations:
1)How to enable horizontal scroll by touching the table itself by using scrollview.
2)How to make gridview appear like excelsheets.
3)How to display custom header in this case.
Are there any other ways for displaying this GridView.

Making a DataGridView Horizontal Scroll Event Scroll Another Control

I have a DataGridView with a panel above it, that contains a group of textboxes above each column. My DataGridView has a horizontal scroll bar. What I want to do is when the DataGridView scrolls horizontally, scroll the panel with textboxes above it, so they stay aligned.
I tried handling the DataGridView's scroll event, but I'm not sure what to do with it. Does anyone have any examples with this?
Sorry - I thought this was an ASP.NET quesiton = ignore my answer.