Help with Data Grid

M

Mike Kirkpatrick

I have this data grid which consists of 3 pick lists.
The first pick list is to affect the data binding of the other two.
I have figured out how to do the data binding by column.
However, I do not want the first pick list to affect the other rows.
At this time, when I change the first pick list, it is causing the
second and third pick lists to change on all the rows.
I just want it to change the second and third pick list on the
currently selected row.

How do I set the data source for a pick list on a cell by cell basis
and not by row?

Anyone tackle this before?

Any help would be greatly appreciated. Thanks in advance.
 
K

Keith Thompson

I have this data grid which consists of 3 pick lists.
The first pick list is to affect the data binding of the other two.
I have figured out how to do the data binding by column.
However, I do not want the first pick list to affect the other rows.
At this time, when I change the first pick list, it is causing the
second and third pick lists to change on all the rows.
I just want it to change the second and third pick list on the
currently selected row.

How do I set the data source for a pick list on a cell by cell basis
and not by row?

I don't see a C question. You might try comp.programming, or perhaps
something more specific to your problem.
 
M

Malcolm

Mike Kirkpatrick said:
I have this data grid which consists of 3 pick lists.
The first pick list is to affect the data binding of the other two.
Is this a database problem? It may or may not be a C language issue, which
is what we deal with here, but your description is too vague to offer any
help. For instance what is a "pick list"?
 
C

CBFalconer

Mike said:
I have this data grid which consists of 3 pick lists.
The first pick list is to affect the data binding of the other two.
I have figured out how to do the data binding by column.
However, I do not want the first pick list to affect the other rows.
At this time, when I change the first pick list, it is causing the
second and third pick lists to change on all the rows.
I just want it to change the second and third pick list on the
currently selected row.

How do I set the data source for a pick list on a cell by cell basis
and not by row?

Please point out the sections of the C standard that define: data
grid; pick list; data binding; column; row; currently selected.

In other words you are seriously off-topic. See the references
below for further assistance.

--
Some useful references:
<http://www.ungerhu.com/jxh/clc.welcome.txt>
<http://www.eskimo.com/~scs/C-faq/top.html>
<http://benpfaff.org/writings/clc/off-topic.html>
<http://anubis.dkuug.dk/jtc1/sc22/wg14/www/docs/n869/> (C99)
 
M

Mike Kirkpatrick

CBFalconer said:
Please point out the sections of the C standard that define: data
grid; pick list; data binding; column; row; currently selected.

In other words you are seriously off-topic. See the references
below for further assistance.

The language is C.

Pick list -> Pop up menu...

It is not a database issue. I can populate the menu structure just
fine. The problem I have is when I try to manipulate the data source
for populating the menu, it affects the entire column instead of the
one element. Example: I have a form with 20 rows and three columns.
Column one is a pop up menu where you select a car type (Ford, Dodge,
etc...). In column two, you have a pop up menu that then gets
populated from the choice in column 1. If you were to select "Ford"
in column one, the pop up menu in column two would populate with
"Escort, F-150, etc...". After you select "Escort" in column two, the
third column pop up menu would populate with "2-door, 4-door, etc...".

Since more then one car can be selected (Up to 300 different
possibilities), it must be done as a data grid. However, the contents
of row one can not affect the contents of row two, three, four, etc.

With the only way I can seem to do the data bindings for the pop up
menus, I can not do that. When I manipulate the data in the other pop
up menus, it not only affects the current row, but all the other rows
as well. I need to be able to specifically tell a particular pop up
menu on a specific row to change it's list. Not all pop up menus in
the entire column.
 
M

Mark A. Odell

(e-mail address removed) (Mike Kirkpatrick) wrote in

The language is C.

Doesn't matter, engine control software is written in C but it doesn't
make engine control topical here.
Pick list -> Pop up menu...

No such thing as this in C. Why don't you supply a small compilable
example of the C code that doesn't work as you wish so we can commment
appropriately. In 14 years of C programming I've never implemented a pick
list or pop up menu so how could I help you at that level of abstraction.
 
M

Mike Kirkpatrick

Mark A. Odell said:
(e-mail address removed) (Mike Kirkpatrick) wrote in



Doesn't matter, engine control software is written in C but it doesn't
make engine control topical here.


No such thing as this in C. Why don't you supply a small compilable
example of the C code that doesn't work as you wish so we can commment
appropriately. In 14 years of C programming I've never implemented a pick
list or pop up menu so how could I help you at that level of abstraction.

Never Mind. I will just take a different direction.
Thanks anyway.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,142
Messages
2,570,820
Members
47,367
Latest member
mahdiharooniir

Latest Threads

Top