473,324 Members | 2,473 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,324 software developers and data experts.

how to obtain the positon of the row in the data set

hi all, i have a master detail form. In the datagrid control i have the following code

Private Sub dtgCobD_CurrentCellChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles dtgCobD.CurrentCellChange
Dim Val As Intege
MessageBox.Show("Col is " & dtgCobD.CurrentCell.ColumnNumber
& ", Row is " & dtgCobD.CurrentCell.RowNumber
& ", Value is " & dtgCobD.Item(dtgCobD.CurrentCell)
Val = dtgCobD.Item(dtgCobD.CurrentCell.RowNumber, 0
If dtgCobD.CurrentCell.ColumnNumber = 2 The
frmDoc1.ShowDialog(
Dst1.Tables("CobD").Rows(0)(2) = frmDoc1.va
End I
End Su

i want to modify the current cell of the datagrid control with the value of frmdoc1.val but i don't know how to obtain the positon of the row in the data set. Please help...
Nov 20 '05 #1
4 1013
use a currency manager

dim cm as currencymanager
dim dsRowposition as integer

cm = bindingcontext(mydataset, "mydatatable")

dsRowposition = cm.position

cm = nothing

I want to hear nothing about my "casing" herfried...
=)
"Carmen de Lara" <cd*****@diario.com.mx> wrote in message
news:7C**********************************@microsof t.com...
hi all, i have a master detail form. In the datagrid control i have the following code:
Private Sub dtgCobD_CurrentCellChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles dtgCobD.CurrentCellChanged Dim Val As Integer
MessageBox.Show("Col is " & dtgCobD.CurrentCell.ColumnNumber _
& ", Row is " & dtgCobD.CurrentCell.RowNumber _
& ", Value is " & dtgCobD.Item(dtgCobD.CurrentCell))
Val = dtgCobD.Item(dtgCobD.CurrentCell.RowNumber, 0)
If dtgCobD.CurrentCell.ColumnNumber = 2 Then
frmDoc1.ShowDialog()
Dst1.Tables("CobD").Rows(0)(2) = frmDoc1.val
End If
End Sub

i want to modify the current cell of the datagrid control with the value

of frmdoc1.val but i don't know how to obtain the positon of the row in the
data set. Please help...
Nov 20 '05 #2
Hi CJ,

It is Herfried

Cor
Nov 20 '05 #3
I'm going to roshambo you...

"Cor Ligthert" <no**********@planet.nl> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi CJ,

It is Herfried

Cor

Nov 20 '05 #4
could you post your code please?

"Carmen de LAra" <cd*****@diario.com.mx> wrote in message
news:3B**********************************@microsof t.com...
I used it but dosen't work, it returns position=0

Nov 20 '05 #5

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

Similar topics

1
by: Dominik Jain | last post by:
Hi! We hope somebody can help me with the following: We have a form through which unicode data might be submitted. We need to be able to detect when this happens and, most importantly, we need...
0
by: Kenan | last post by:
hi, i want to get the part of a text where i click (where the mouse positon is) as it's done in glossary program "babylon". this text can be any part of a name of an icon,a window...
3
by: gooderthanyou | last post by:
I have a textfield and you of course you can select text... When they hit the bold button I want it to obtain the selected text and bold it, the hard part is trying to figure out if javascript...
5
by: OneFang | last post by:
Hi I hope I make sense here. I want to be able to obtain the name of the method that calls a method within my class. So If I have my class that has a method LogInfo() And my client code...
0
by: James | last post by:
Hi, I'm trying to obtain information from a 3rd party software, using ASP .NET. The software only comes with a Java API that I can use or a telnet interface. Through telnet, I had to parse the...
2
by: Yarik | last post by:
Hello, I am not sure the subject of my post adequately describes the problem I am trying to solve, so I think a specific example would be helpful. Let's say there are XML descriptions of...
0
by: godsmustbcrazy | last post by:
Here is my problem. Brand new SQL Server 2005 Installation 1. Create a database "Test" 2. Create a database user "Domain\user" and set user mapping to "Test" with datareader, datawriter...
1
by: bluepiper | last post by:
Im using VB6. On rowcolchange event of may datagrid, im using the Frame caption to get the selected data. The problem is when I select the data on the grid. Its not showing the absolute position,...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.