473,909 Members | 5,624 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1821
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.programmin g, or perhaps
something more specific to your problem.

--
Keith Thompson (The_Other_Keit h) 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.co m> 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********@yah oo.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.goog le.com:
> 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*******@hotm ail.com> wrote in message news:<Xn******* *************** **********@130. 133.1.4>...
po***@yahoo.com (Mike Kirkpatrick) wrote in
news:e5******** *************** **@posting.goog le.com:
> 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
4886
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 five tables, and three relations that I want to take advantage of. Everything works fine however I want to use the data grid table style editor to make it look more presentable. Currently I have successfully done this
2
5149
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? Also, how can I associate all the attributes and their values of a particular element to the Name & Value columns of a datatable - to read into a datatable as well as write from the datatable to the xml element? Any help will be greatly...
0
1438
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 grid row2 data contain sheet2 grid row3 data contain sheet3 we have pressing one button ultrawebgrid (or) datagrid rows data to export
1
2975
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 a DataGrid, and set the PrimaryKey of the DataTable to be the first cell in the grid (which is a UserID value). I then store the DataTable in a session object, from which it is retrieved for subsequent pages. All this seems to be working fine. ...
4
2286
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 dataSet updating lark when i realised that i think i am right back at square 1!!! Here's my scenario - i have a SQLDB and i retrieve all my data from that into a dataset and display this to a datagrid(WebForm). I have got this grid sorted and...
12
1479
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 my data grid display on a tab control? I have a tab control with 2 tabs on it, one for the data grid and the other for comments. I have tried everything. Where do I add the code to say display the data grid on this tab? I have the code and...
0
2233
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 from www.franson.com For some reason my code below doesnt work - the GpsFixEvent never seems to "fire" as it were.
2
304
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
2690
by: trint | last post by:
How can I retrieve all of the data from a datagridview? Any help is appreciated. Thanks, Trint
6
8824
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, the SelectionChanged event fires and I load some more data that's particular to that row. The problem I'm having is that the SelectionChanged event is going way
0
10037
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9879
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11348
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
11052
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
8099
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7249
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5938
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4776
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3359
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.