472,354 Members | 2,189 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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
6 1657
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 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: Anita C | last post by:
Hi, How do I associate or map a specific column in a datatable to a particular element present in an xml document - to read into a datatable as well as write from the datatable to the xml element?...
0
by: sunilkumar Reddy via DotNetMonster.com | last post by:
hai all first we can take binded grid Export to excel data from ultrawebgrid (or) datagrid rows, Each row data Expoting to one worksheet in excel workbook, like as grid row1 data contain sheet1...
1
by: Mike | last post by:
I have an ASP.NET/VB app that updates values in a DataTable over the course of about 3 different pages. On the way out of the first of these pages, I explicitly build the DataTable from values in...
4
by: steroche | last post by:
I would REALLY appreciate help please please please! Im sure it is probably blindingly obvious to most of you but I am totally in the dark here!I am lost - i thought i had finally figured out this...
12
by: Kimberley Wiggins | last post by:
Can someone please help me? I am still learning vb so this is fairly new. I have been chasing this problem for 3 days now and I think that I am ready to give up. Does anyone know how to make...
0
by: BigAl.NZ | last post by:
Hi Guys, I am trying to write/copy some code that uses events with a GPS. Everytime the GPS position updates the event fires. The GPS code is from a SDK Library that I got called GPS Tools...
2
by: sicapitan | last post by:
I'm trying to build some xml from an array with the help from another array. In one array I have $cells Array ( =CELL0
9
by: trint | last post by:
How can I retrieve all of the data from a datagridview? Any help is appreciated. Thanks, Trint
6
by: Simon Harvey | last post by:
Hi all, I'm really hoping someone can help me with this as it's causing me some serious problems. I have a Windows Forms application using the gridview control. When the user selects a row,...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
1
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. header("Location:".$urlback); Is this the right layout the...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it so the python app could use a http request to get...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
1
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...

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.