473,320 Members | 2,111 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

DataGrid arrow buttons don't work, scroll bar does

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)
Nov 20 '05 #1
0 1341

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Jim H | last post by:
I have a ListBox hold a list of my custom controls (it's UserControl based control with a couple radio buttons and a checkbox). Everything works and displays the way I expected it to. I can move...
3
by: bardo | last post by:
I have a Datagrid that is inside a panel. I want to use the keyDown event to reconize the arrow keys. But I have no luck at all. The problem is that the keydown event won't fire at all, unless I...
1
by: Craig Banks | last post by:
If a row of data in a dataset has a lot of columns the row displaying the data in a datagrid will run way off the screen. What I'd like to do is display a row of data over several datagrid rows so...
1
by: Tom | last post by:
I have tried all the solutions I have found on the web, including the syncfusion solutions I can get the combobox on the grid ok, but it does not behave like a regular combobox Example On a form,...
4
by: Neil Wallace | last post by:
Hi there, I have an application in which a grid of 100 or more buttons are put on a form in columns of 10. All the buttons are within a panel. They are added in runtime, and so they adopt a...
11
by: Rlrcstr | last post by:
How can you detect when an arrow key gets pressed? Doesn't seem to trigger a KeyPress or KeyDown event. Thanks. Jerry
3
by: Phillip N Rounds | last post by:
I have a DataGrid in a web form (ASP1.1, C#, VS 2003) that I'm trying to add some functionality to, and I can't figure out how to do int. The existing DataGrid has several databound columns and a...
3
by: J-Rod | last post by:
Hi all. I am using a datagrid and have removed the scrollbars. I instead put arrow buttons to scroll up or down. The scrolling is way to slow. When i click on the buttons, there is a...
2
by: velocius | last post by:
i use the current code to reselect a line of code in my datagrid int currentRow = dgUsers.SelectedRows.Index; dgUsers.Refresh(); dgUsers.Rows.Selected = true; this reselects the line (it...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.