473,406 Members | 2,549 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,406 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 1780
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.