Throughout our system we use the DataGrid. One problem
we've noticed is that the arrow buttons don't always work
with our grids, clicking on them sometimes won't move the
columns at all, or may move one or two into view, but not
all columns. Using the scroll bars works fine. We use a
ClmnsSettings class to set the order of the columns. The
user is able to hide certain columns and restore them to
their default widths. Any suggestions? We want the user to
be able to use the arrow buttons to view all the columns
that aren't hidden in the grid, rather than relying only
on the scroll bar.
m_oColSettings = New ClmnsSettings()
With m_oColSettings
.Add("CmpnyID", "", 0, 0)
.Add("RTNbr", "R&T Nbr", 0, 12)
.Add("A", "A", 0, 10)
.Add("B", "", 0, 11)
.Add("C", "C", 200, 1)
.Add("D", "D", 100, 6)
.Add("E", "E", 100, 3, "d")
.Add("F", "F", 100, 4, "d")
.Add("G", "G", 100, 5, "d")
.Add("H", "H", 100, 2)
.Add("I", "", 0, 13)
.Add("J", "J", 100, 9)
.Add("K", "K", 100, 8)
.Add("L", "L", 0, 14)
.Add("M", "", 0, 15)
.Add("N", "N", 100, 7)
End With
oColHdr.Init(m_oColSettings, "Name", Me.Name,
grid.Name)
SetUpGrid(m_Relats, grid, m_oColSettings)
dtView = New DataView(m_Relats)