We are proceeding so that data can be viewed using DataGridView.
I wanted to add a header to a line and had a problem during the initialization phase.
I researched various things about adjusting the position of the scroll bar, but I couldn't find any information, so I would appreciate it if you could teach me. Thank you.
I'm initializing a DataGridView, but a vertical scroll is displayed in the grit.
(Scrolling itself is possible)
What I tried
'Data grid view initialization (number of data 4 x 2 (A/B)) For i As Integer = 1 To 4 Dim row As Integer = DG1.Rows.Add () DG1.Rows (row) .HeaderCell.Value = "No" + i.ToString () + "-A" Next For i As Integer = 1 To 4 Dim row As Integer = MesDispLeak.Rows.Add () DG1.Rows (row) .HeaderCell.Value = "No" + i.ToString () + "-B" Next DG1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill DG1.RowHeadersWidth = 80 DG1.Refresh ()
1) Scrolling does not occur without adding content (obviously ... as a separation)
2) Reset the scroll position
DG1.RowHeadersWidth = 80 DG1.ScrollBars = ScrollBars.None DG1.ScrollBars = ScrollBars.Both DG1.Refresh ()
Supplementary information (FW/tool version, etc.)
OS: Windows 10
Development environment: Visual Studio 2017/.Net 4.0
Answer # 1
The cause was that the following code was written in the sizeChanged of the form.
- if you can scroll text in unity, the vertical position will be in the center
- c # - i want to display at the previous scroll position when reopening in the scroll view of unity
- i want to know how to change the scroll bar width of vbnet datagridview
- jquery - i want to fix the header menu with position: fixed ;, but as i scroll, it gets hidden in the bottom section
- css3 - about the vertical position of characters when lined side by side
- error message when adding datagridview row
- js implementation page refresh scroll bar position unchanged
- JS implements the position of the scroll bar when returning to the record after refreshing the page [two options are available]
- JS implementation of pauseable vertical scroll example code
- Android ListView scroll to specified position
- UITableView scroll to specified position in iOS
- Remember the position of the scroll bar when the page refreshes jquery code
- Using jquery to make scroll to specified position trigger animation
- JS implements scroll bar to a certain position to automatically locate a tr
- ios - i want to implement a vertical scroll screen using uiscrollview
- sql server - datagridview display vertical display of horizontal data
- datagrid - [vbnet] excel output of data grid view
- datagrid - [vbnet] about errors in directcast
- sql server - sql net
- about adjustment of table column width of vbnet datagridview
- vb - how to bind datagrid
- in vbnet datagridview, an error occurs when the ← key and → key are pressed
- datagrid - [vbnet] object reference not set to object instance
- about moving cells from datagridviewcheckboxcolumn
- datagrid - datagritview rows only show last row when populated