473,387 Members | 1,545 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,387 software developers and data experts.

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

Hello
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.

Also:

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
KRKostenArtikelgruppenDataGridView.RowLeave
If Me.Validate Then
Me.KRKostenArtikelgruppenBindingSource.EndEdit()

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
row.

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

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

Since VS.NET 2005(Whidbey) has not been released, so far for Whidbey issue,
we have a definitely newsgroup about Whidbey.
microsoft.beta.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
issue,
we have a definitely newsgroup about Whidbey.
microsoft.beta.whidbey.*


You are sure?

Thank you verry match.

Robert
Nov 21 '05 #3
Robert,

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.

http://forums.microsoft.com/msdn/Sho...spx?ForumID=32

I hope this helps a little bit?

Cor
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
(<URL:http://lab.msdn.microsoft.com/vs2005/community/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
Hi

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

2
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...
2
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...
6
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;...
3
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...
0
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...
5
by: ad | last post by:
I find there are some tag like <%= %> and <%# > in my .aspx file. What is the diffreence between <%= %> and <%# %>
3
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...
7
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...
3
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,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...

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.