473,382 Members | 1,290 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,382 software developers and data experts.

Quicken Style Grid Question

I am trying to create a grid on a form that looks like the 'Split
Transaction' grid in Quicken - it allows drop down controls in various cells
of grid to make a selection, and then stores the text of the drop down
list/combo boxes in the grid.

I know how to use hidden combo/list boxes that display when a user clicks on
a cell that is setup with the drop down button and event. However, when the
user makes a selection, the ID (bound field) related to the selection is
stored in the grid cell instead of the text. And if I try to save the text
value, I get a database error when trying to save the grid information to
the database. I have tried using a data control and using a separate
recordset to populate the grid. I would also like to be able to roll back
the information in the grid if the user clicks a Cancel button to abandon
changes.

This is such a common requirement that I can't believe the DataGrid,
HFlexGrid, or FlexGrid can't do this. I'm using VB6 enterprise edition and
a MS Access database.

Any ideas?
Jul 17 '05 #1
1 4933

"Bhom" <wi*********@earthlink.net> wrote in message
news:p%*****************@newsread2.news.pas.earthl ink.net...
I am trying to create a grid on a form that looks like the 'Split
Transaction' grid in Quicken - it allows drop down controls in various cells of grid to make a selection, and then stores the text of the drop down
list/combo boxes in the grid.

I know how to use hidden combo/list boxes that display when a user clicks on a cell that is setup with the drop down button and event. However, when the user makes a selection, the ID (bound field) related to the selection is
stored in the grid cell instead of the text.
I have done this using a MSFlexGrid and ComboBox. Store the IDs in the
ComboBox.ItemData(Index) property with the according text. In the
ComboBox_Click event send the ComboBox.ItemData(ComboBox.ListIndex) into the
current grid cell. If you're not sure how to set the ComboBox ItemData here
is an example:

Query the Text and IDs into a recordset and do the following:

With mRecordset
.MoveFirst
Do While Not .EOF
Combo.AddItem !Text
Combo.ItemData(Combo.NewIndex) = !ID
.MoveNext
Loop
End With

And if I try to save the text value, I get a database error when trying to save the grid information to
the database. I have tried using a data control and using a separate
recordset to populate the grid. I would also like to be able to roll back
the information in the grid if the user clicks a Cancel button to abandon
changes.
There are RollBack functions for Databases. I'm not too sure on how well
they work. I was under the impression that you can use RollBack prior to an
Update call to the Recordset.

This is such a common requirement that I can't believe the DataGrid,
HFlexGrid, or FlexGrid can't do this. I'm using VB6 enterprise edition and a MS Access database.

Any ideas?

Jul 17 '05 #2

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

Similar topics

2
by: Jordan O'Hare | last post by:
Hello Everyone, I am after some help with the following: I have a windows application that contains a list box and two data grids. All three controls are binded to a dataset that contains...
2
by: Tonya | last post by:
Hi, i wanted to know how i could resolve the following error message: An unhandled exception of type 'System.ArgumentException' occurred in system.dll Additional information: The data grid...
1
by: sam | last post by:
Hi, I want to use style on the grids of table. Currently it use default style of the html table, in which the grid size appeared very thick. How can I change the "thick" style of the default...
1
by: Jim Heavey | last post by:
Hello, I am hoping I have a very basic question for Cascading Style Sheets If I am using an ASp:Panel control and I have a number of controls in the panel, how do I get the controls to all...
4
by: John Wright | last post by:
I posted this once before without any answers so I am trying again. Does anyone know of or have code that will parse Quicken files? I am writing a program that will parse quicken files, pull the...
4
by: Michael | last post by:
Dear all .. If I want to use develop a user control and declare a public property which the type is System.Windows.Forms.GridTableStylesCollection For example : Public Class LookAndView...
1
by: simpleinventor | last post by:
My dad has an old real-estate managing program he's been using since windows 3.11. It has a lot of .dbf and .ntx files, so research suggests that this program was written in XBase. He just recently...
4
by: laredotornado | last post by:
Hi, I have a client that wants to export his sales data into formats that can be imported into Quicken. Figured this kind of thing has been tackled before, but had trouble finding freeware on...
1
by: Ryan Liu | last post by:
Hi, Is there a way to specify data Grid column Style if its DataSource is an IList(ArrayList), not a datatable? Can I selectively only show few columns, not all of its properties? Thanks!
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
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.