473,549 Members | 5,196 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help with Advanced Datagrid (repost)

First of all thinks to Cor Ligthert for helping me with this last week.

If you wild like to read Cor's comments please refer to the posting from
10/14/2004 and 8:48AM "Help with Advanced Datagrid"

I am trying to bind one column of a datagrid to a seperate textbox and
the rest of the fields to a datagrid. the comments are too large to
fit in a datagrid so I created a textbox below the datagrid and need
it to hold the data for the current record selected in the datagrid.
Here is a part of the code.

'DataSetWellMob ile1 is the dataset with all the data
'DGWellResults is the dtagrid I am binding the data to
'txtWellComment s is the textbox that I need bound

Me.DataSetWellM obile1.Relation s.Add( _
New DataRelation( _
relationName:=" relWellInfo", _

parentColumn:=M e.DataSetWellMo bile1.Tables("T blPeople").Colu mns("UniqueId") ,
_

childColumn:=Me .DataSetWellMob ile1.Tables("Tb lWellMobileInfo ").Columns("Per s
onId"),
_
createConstrain ts:=True))

Me.DGWellResult s.DataBindings. Add(New Binding("DataSo urce",
Me.DataSetWellM obile1.TblPeopl e.DefaultView, "relWellInf o"))

Me.txtWellComme nts.DataBinding s.Add(New Binding("Text",
DataSetWellMobi le1.TblPeople.D efaultView, "relWellInfo.Co mments"))

The code binds everything but the currency manager does not change the
textbox to the next record when I select on the next record in the
datagrid.

The data structure is

Parent Datagrid
Child Datagrid
textbox linked to child datagrid

What am I missing.
Thanks,
Brad
Nov 21 '05 #1
2 1315
Brad,

I have tried this again but I cannot get the currencymanager do anything,
what related table I use or object I connect as filter to that.

I have searched Google for this and found one answer what I thought that was
about this. There was talked about a kind of bug by somebody who had
contacted Microsoft. However it was not clear if he had an answer and if the
answer did fit.

(The currencymanager stays forever on zero, a problem what I had seen before
however because of your question have again investigated).

You can go around this by not using the datarelations but the dataview with
filter, however than you have to do the adding of rows not using the *.

Maybe you can place this question as well in the newsgroup

microsoft.publi c.dotnet.framew ork.adonet

Can be that somebody there says, this is easy and than we both know the
answer because I am not as much as here however as well active in that
newsgroup.

Cor
"Brad Shook" <bs****@echd.or g.removeme>
First of all thinks to Cor Ligthert for helping me with this last week.

If you wild like to read Cor's comments please refer to the posting from
10/14/2004 and 8:48AM "Help with Advanced Datagrid"

I am trying to bind one column of a datagrid to a seperate textbox and
the rest of the fields to a datagrid. the comments are too large to
fit in a datagrid so I created a textbox below the datagrid and need
it to hold the data for the current record selected in the datagrid.
Here is a part of the code.

'DataSetWellMob ile1 is the dataset with all the data
'DGWellResults is the dtagrid I am binding the data to
'txtWellComment s is the textbox that I need bound

Me.DataSetWellM obile1.Relation s.Add( _
New DataRelation( _
relationName:=" relWellInfo", _

parentColumn:=M e.DataSetWellMo bile1.Tables("T blPeople").Colu mns("UniqueId") ,
_

childColumn:=Me .DataSetWellMob ile1.Tables("Tb lWellMobileInfo ").Columns("Per s
onId"),
_
createConstrain ts:=True))

Me.DGWellResult s.DataBindings. Add(New Binding("DataSo urce",
Me.DataSetWellM obile1.TblPeopl e.DefaultView, "relWellInf o"))

Me.txtWellComme nts.DataBinding s.Add(New Binding("Text",
DataSetWellMobi le1.TblPeople.D efaultView, "relWellInfo.Co mments"))

The code binds everything but the currency manager does not change the
textbox to the next record when I select on the next record in the
datagrid.

The data structure is

Parent Datagrid
Child Datagrid
textbox linked to child datagrid

What am I missing.
Thanks,
Brad

Nov 21 '05 #2
Thanks Cor. I will post this in another group. I agree with you in that I
think this is a bug.
"Cor Ligthert" <no************ @planet.nl> wrote in message
news:%2******** *******@TK2MSFT NGP15.phx.gbl.. .
Brad,

I have tried this again but I cannot get the currencymanager do anything,
what related table I use or object I connect as filter to that.

I have searched Google for this and found one answer what I thought that was about this. There was talked about a kind of bug by somebody who had
contacted Microsoft. However it was not clear if he had an answer and if the answer did fit.

(The currencymanager stays forever on zero, a problem what I had seen before however because of your question have again investigated).

You can go around this by not using the datarelations but the dataview with filter, however than you have to do the adding of rows not using the *.

Maybe you can place this question as well in the newsgroup

microsoft.publi c.dotnet.framew ork.adonet

Can be that somebody there says, this is easy and than we both know the
answer because I am not as much as here however as well active in that
newsgroup.

Cor
"Brad Shook" <bs****@echd.or g.removeme>
First of all thinks to Cor Ligthert for helping me with this last week.

If you wild like to read Cor's comments please refer to the posting from
10/14/2004 and 8:48AM "Help with Advanced Datagrid"

I am trying to bind one column of a datagrid to a seperate textbox and
the rest of the fields to a datagrid. the comments are too large to
fit in a datagrid so I created a textbox below the datagrid and need
it to hold the data for the current record selected in the datagrid.
Here is a part of the code.

'DataSetWellMob ile1 is the dataset with all the data
'DGWellResults is the dtagrid I am binding the data to
'txtWellComment s is the textbox that I need bound

Me.DataSetWellM obile1.Relation s.Add( _
New DataRelation( _
relationName:=" relWellInfo", _

parentColumn:=M e.DataSetWellMo bile1.Tables("T blPeople").Colu mns("UniqueId") , _

childColumn:=Me .DataSetWellMob ile1.Tables("Tb lWellMobileInfo ").Columns("Per s onId"),
_
createConstrain ts:=True))

Me.DGWellResult s.DataBindings. Add(New Binding("DataSo urce",
Me.DataSetWellM obile1.TblPeopl e.DefaultView, "relWellInf o"))

Me.txtWellComme nts.DataBinding s.Add(New Binding("Text",
DataSetWellMobi le1.TblPeople.D efaultView, "relWellInfo.Co mments"))

The code binds everything but the currency manager does not change the
textbox to the next record when I select on the next record in the
datagrid.

The data structure is

Parent Datagrid
Child Datagrid
textbox linked to child datagrid

What am I missing.
Thanks,
Brad


Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
259
by: s-galit | last post by:
hi, i want to add a column to the dataGrid . till now i create a dataGrid with 3 columns connected to dataSet and i wand another column that wont be connected to the dataSet is it possible?? if yes , how ? what to change in my code? thanks in advanced Dim DataGrid1 As New DataGrid Dim tablestyle As New DataGridTableStyle
0
1239
by: rawCoder | last post by:
Hi All, This is a repost of 'Disable DataGrid AutoScroll of 3/7/2005' Its related to "WinForm DataGrid" HOW can i force the grid NOT to Auto Scroll to the ( newly added item OR last selected item )? Currently as a new item is entered, the grid SCROLLS hence changing the
8
3123
by: pei_world | last post by:
Hi, there; I have a problem with my datagrid control. I declared it in one of my form, set with DataGridTalbeStyle as well, and when I click on button, I would like to retrive Data from Database and bind these data to my datagrid in the form, when I click the button first time, it work fine. but when I click the second button. it report...
1
1322
by: Maqsood Ahmed | last post by:
Hello! There is a DataGrid on a form that is populated through DataTable and filters have been applied to through DataView. The DataTable gets updated through some events and obviously it also reflects at the datagrid. Now problem arises, that whenever a new record is being inserted in the datagrid, It scrolls waywardly, that distracts the...
3
4426
by: BBFrost | last post by:
Ok, I know how to count the number of selected datagrid rows using the code below. What has me stumped is how to determine when the selected rows within a datagrid have been changed. The DataGrid object doesn't seem to have a any type of a selection changed type of event I can grab. THE QUESTION: Does anyone know how to determine when...
3
2108
by: tshad | last post by:
How do I clear a DataGrid? I have 2 datagrid (DataGrid1 and DataGrid2). They are the same, except for a couple of extra fields that DataGrid has for detail. I only display one DataGrid at a time. The problem is that even when one is not showing, it is still sending the data it was filled with before. When I switch to one DataGrid and...
5
2291
by: Brad Shook | last post by:
I am trying to bind one column of a datagrid to a seperate textbox and the rest of the fields to a datagrid. the comments are too large to fit in a datagrid so I created a textbox below the datagrid and need it to hold the data for the current record selected in the datagrid. Here is a part of the code. 'DataSetWellMobile1 is the dataset...
0
2217
by: Andrew Meador - ASCPA, MCSE, MCP+I, Network+, A+ | last post by:
I am running Access 2007. I have a report that I want to filter. I can go into Advanced...Advanced Filter/Sort... and setup a filter that works fine on the report when I apply it. When in this filter/query creation area, I can right click and Save Query. I have saved a query fine. However, now when I open the report back up (after closing...
2
6567
by: =?Utf-8?B?Y3JlYXZlczA2MjI=?= | last post by:
I have a nested datagrid in a xaml file, the parent datagrid loads the vendor information and the details loads the documents for that vendor in a datagrid. Everything is working fine until I click in the child datagrid and then go to the combobox and choose another vendor. When the new vendor is loaded nothing shows in the datagrid but the...
0
7526
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...
0
7455
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...
1
7480
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...
0
6050
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5373
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...
0
5092
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...
0
3504
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...
0
3486
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1063
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.