467,222 Members | 1,405 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,222 developers. It's quick & easy.

Help with Data Grid

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.
Nov 14 '05 #1
  • viewed: 1493
Share:
6 Replies
po***@yahoo.com (Mike Kirkpatrick) writes:
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.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Nov 14 '05 #2
"Mike Kirkpatrick" <po***@yahoo.com> wrote in message

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"?
Nov 14 '05 #3
Mike Kirkpatrick wrote:

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)
Nov 14 '05 #4
CBFalconer <cb********@yahoo.com> wrote in message news:<40***************@yahoo.com>...
Mike Kirkpatrick wrote:

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.


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.
Nov 14 '05 #5
po***@yahoo.com (Mike Kirkpatrick) wrote in
news:e5*************************@posting.google.co m:
> 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.


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.

--
- Mark ->
--
Nov 14 '05 #6
"Mark A. Odell" <od*******@hotmail.com> wrote in message news:<Xn********************************@130.133.1 .4>...
po***@yahoo.com (Mike Kirkpatrick) wrote in
news:e5*************************@posting.google.co m:
> 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.


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.


Never Mind. I will just take a different direction.
Thanks anyway.
Nov 14 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Jordan O'Hare | last post: by
reply views Thread by sunilkumar Reddy via DotNetMonster.com | last post: by
4 posts views Thread by steroche | last post: by
12 posts views Thread by Kimberley Wiggins | last post: by
reply views Thread by BigAl.NZ@gmail.com | last post: by
2 posts views Thread by sicapitan | last post: by
reply views Thread by Adict | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.