What is this? It looks like a table to me. I would like to know, (A) What is this? and (B) How do I get it to fill with data? Also, How do I get the starting row to have the labels with the room numbers.
It may be hard to see as I was only limited to 500KB for the attachment. You can probably download the pic, and then make it bigger. Any help on this would be terrific.
Also, I would guess that it populates data from many sources. It populates room reservations, in house guests, checked out. So, how would I need to do this as well?
OK, then answer what you can, other then that, do not post. The problem with this forum is there is not very much learning, just talking. I simply asked (A) What that was, was it a DataGridView, A Table, What? (B) I guess I should have said, if it was a table, how do I load databound data into it.
It doesn't look like any standard control that I am aware of. Quite likely it is a third party control, in which case you either get to make your own, or pay some dough.
The left column looks a bit odd (it may just be that the image is shrunken). Are those labels functioning the same as buttons (they look vaguely like buttons in a variety of states)? Or are they just labels? If they are just labels, then the thing is probably subclassed off of a DataGrid. I don't know of any obvious way to get the cells divided into quarters (which may also be a visual artifact of the image). If that isn't important, then I think you can get the bulk of the appearance from a datagridview.
If the left column is buttons, then I can suggest a way to get the effect, though there may be a better solution.
they are just labels. However, The labels across the top are dates, and when you enter in a date criteria, the data table or what ever it is, fills in the dates across the top in sequential order. (how do you do that in any case?), the white squares, you click on that, and then at the bottom, you can click the "Make Reservation" button to load the reservation form. (Still don't know how to load a form with data populated from the previous form).
OK, then answer what you can, other then that, do not post.
I was seriously trying to help. The real problem with forums (and ims, and texting, and...) is that you can't really inflect and stress correctly. I was not trying to come across as an *******.
To be more specific:
From your question, I thought you were asking how to keep up with all that data and how to get it. That would depend on the table structure, which is something you would have to come up with, since it specific to how you want to deal with the info. I can't see the pic very well, but (as Shaggy Hiker said) it looks like a third party control. Since we may not all have that, it would be very difficult to demonstrate to you how to populate it.
I just thought it was a pretty loaded question to be asking from a screenshot. I understand how it could've sounded like I was trying to jab you, but I was only trying to let you know how I felt about it, because it is possible many others could feel the same way. And I felt like I wasn't given enough info, so I thought maybe my response would prompt you to provide more so I or someone else could help you.
EDIT: Also, I was getting called to a meeting right when I was posting, so my judgement wasn't at its best and I cut it a bit short. Looking back on it, I could've been more helpful.
Last edited by 18experience; Apr 13th, 2007 at 04:55 PM.
Those are labels? They are funky looking labels. If those are dates across the top, then I'm thinking that I ought to change my suggestion. This sounds like a custom calendar control, but that depends on what is in the left columns.
I don't use databound controls, so I can't say anything about that, but depending on what is in the left column, this could probably be re-created based on a ListView in detail mode. This would make the column headings easy to deal with. I still think this is probably a third party control, but that doesn't mean that the same functionality couldn't be created using off the shelf controls.
Take a look at the calendar control that comes with .NET. I have only used it in some very narrow applications, so I don't know whether it has anything like that.
Oh, ok, that makes sense. In that case, a bound control doesn't make sense to me, because I can't think of a way to store that information in a database so that it would look anything like what is being shown. Any kind of grid display of tabular data would look like that, but the reservations aren't really tabular data. You certainly wouldn't have an underlying database that would have a field for every day, or anything of the sort. You'd have a database with a starting day and an ending day for a room. The control, then, has to take a bunch of records, and graphically display that on a grid, which is not really like any databound control I am aware of.
If I were to do that, the first thing I would try would be looking around for existing, free, calendar controls that had some of that functionality. However, I'm not sure that that would work, so next I would be inclined to use a ListView in Detail mode. The columns would be set when the person decided on the first date. The number of rooms (rows) is fixed (unless you added a field for "Out of Service", such that rooms that were not available ro be let were not shown in the grid.
This would work, but it would require that whenever the dates changed, the whole ListView would have to be re-populated almost entirely. In the background, a query would be run on the database to return all rooms that were let during any of the visible days. This would be in a DataReader because you would only want a fast, forward-only recordset. For each record, the set of visible days the room was let would be indicated on the ListView. I have no obvious solution for that, because I would have to try various things to get a really obvious color or graphic based visual cue.
I think that is all the suggestion I can provide. Perhaps somebody else can suggest a control that would be more suitable, but the ListView would work....with a bit of effort.
what's shown in the picture might not be all in one control, that picture could be a panel with a bunch of labels, etc... on it, with the panel being the control to scroll the other controls
Currently using VS 2015 Enterprise on Win10 Enterprise x64.
Yeah, I've used that technique for smaller things. You can do quite a bit with cleverly overlaying controls on controls. However, with the exception of the apparent bisection of each row and column, that looks mostly like a ListView. There are some things arguing against that, though, so an overlay of various other controls is also a possibility.
Everyone is saying a ListView, but gridlines on a list view is horizontal only, so I don't know what it is. Part of it looks like a DataGridView, but they're not that functional.
It may be hard to see as I was only limited to 500KB for the attachment. You can probably download the pic, and then make it bigger. Any help on this would be terrific.
Did you save the pic as a JPG before downloading it?
*** Read the sticky in the DB forum about how to get your question answered quickly!! ***
Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".
Run the app, use MS Spy++ and drag the window finder tool over the desired control, drop it, see what the window specifics tell you its class is. Thats the only sure fire way to determine what it is. Appearance is only a guess at what it is at best.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
This is a program that I downloaded, for which I am getting ideas (not copying) for my program. This program that I downloaded was written in COBOL. So, this is why it's an unfamiliar control.