472,805 Members | 949 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

VB 2005 Row index in datagridview <> row index in dataset

i have this problem:

In a DataGridView the user work with data from a DataSet. on Start the row
index from datagridview is the same as the row index from the dataset.


DataGridView.Rows(5) <=====> DataSet.Rows(5) .

if the user delete a row (without update), or the user sort the datagridview
the index in the datagridview change but not the index in the dataset.

do you can help me to find the dataset index from the datagridview index?

my Example:

Private Sub KRKostenArtikelgruppenDataGridView_RowLeave(ByVal sender As
Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles
If Me.Validate Then

If Me.KenusDBDS.KRKostenArtikelgruppen.Rows(e.RowInde x).RowState
= Data.DataRowState.Added Or
Me.KenusDBDS.KRKostenArtikelgruppen.Rows(e.RowInde x).RowState =
Data.DataRowState.Modified Then
Me.KenusDBDS.KRKostenArtikelgruppen.Rows(e.RowInde x).Item("GebuchtDatum")
= Now()
Me.KenusDBDS.KRKostenArtikelgruppen.Rows(e.RowInde x).Item("GebuchtPerson")
= PersonenNummer
End If

End If
End Sub

This example don't work correct with sorted datagridview or after delete a

Sorry for my english ;-) and thank you for our support!

Robert Koller
Nov 21 '05 #1
7 8285
Hi Robert,

Since VS.NET 2005(Whidbey) has not been released, so far for Whidbey issue,
we have a definitely newsgroup about Whidbey.

Thanks for your understanding!
Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 21 '05 #2
Hi Peter

Thank you for your response.

Unfortunatly i can't fin this newsgroup
Since VS.NET 2005(Whidbey) has not been released, so far for Whidbey
we have a definitely newsgroup about Whidbey.

You are sure?

Thank you verry match.

Nov 21 '05 #3

I could not find them either, I assume that they exist still as internal
Microsoft newsgroups.

However this is a link to the 2005 vb forum in advance that Peter answers,
although it is possible that he is still up.


I hope this helps a little bit?

Nov 21 '05 #4
"Robert Koller" <he******@nospam.nospam> schrieb:
Unfortunatly i can't fin this newsgroup

These groups have been closed and (sadly) replaced by the forums

M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #5
Thank you, i have found it too.
Nov 21 '05 #6
Thank you, Cor
Nov 21 '05 #7

I am sorry for my mistake, I did not notice that has been closed.
And thanks for Herfried's correction, so far you can post to the link as
Herfried suggest.

If you still have any concern, please feel free to post here.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 21 '05 #8

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

Similar topics

by: Eshrath | last post by:
Hi, What I am trying to do: ======================= I need to form a table in html using the xsl but the table that is formed is quite long and cannot be viewed in our application. So we are...
by: Donald Firesmith | last post by:
I am having trouble having Google Adsense code stored in XSL converted properly into HTML. The <> unfortunately become &lt; and &gt; and then no longer work. XSL code is: <script...
by: Joe | last post by:
I have a: vector<string> which contains a few dozen elements. I want to find the index of the element containing a certain string. for example: vector<string> strings;...
by: Zürcher See | last post by:
If I know the datagrid row there is a method to get the dataset row? Now I use the dataset id the find it out, id=this.dataGrid1; // column 0 is id DataRow...
by: Henry | last post by:
Dear Group: A question regarding the behavior of the Visual Studio.NET. When I drag the "Customers" table in "Northwind" database on Server Explorer to my web page, then select the DataAdapter...
by: ad | last post by:
I find there are some tag like <%= %> and <%# > in my .aspx file. What is the diffreence between <%= %> and <%# %>
by: | last post by:
I have been researching articles on google on how to create a simple RSS feed that sucks <title><blurb><link><date> out of a sql server 2000 database via an aspx page. I know it has to be pushed...
by: BluDog | last post by:
Hi I am trying to store an image in an xml file, i vcan store it fine but the retreval is a bit of a problem: To String: Dim ms As New IO.MemoryStream Dim arrImage() As Byte...
by: ajay2552 | last post by:
Hi, I have a query. All html tags start with < and end with >. Suppose i want to display either '<' or '>' or say some text like '<Company>' in html how do i do it? One method is to use &lt,...
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
by: lllomh | last post by:
How does React native implement an English player?

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.