473,480 Members | 1,859 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Is there a simple way to select a row which has been just inserted in a dataset binded to a datagrid?


Any help or advice is very welcome.

Thanks,
Juan.
Jul 21 '05 #1
3 1561
Juan,

You mean the datatable rowchange event?

http://msdn.microsoft.com/library/de...angedtopic.asp

The added row is forever
dataset.tables(x).rows(dataset.tables(x).rows.coun t - 1)

and when that is more than the previous there is one added.

I hope this helps?

Cor

"Juan" <ju*****************@ANTISPAMhotmail.com>

Any help or advice is very welcome.

Thanks,
Juan.

Jul 21 '05 #2
Thanks, after i insert a row in the dataset binded to the datagrid i want
that row to be selected in the datagrid, it displays the inserted row but
dosn't select it. I created a loop that search for the inserted row in the
datagrid and the selects it...

Regards,
Juan.

"Cor Ligthert" <no************@planet.nl> escribió en el mensaje
news:Ol*************@TK2MSFTNGP11.phx.gbl...
Juan,

You mean the datatable rowchange event?

http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfsystemdatadatatableclassrowchangedtopic.asp
The added row is forever
dataset.tables(x).rows(dataset.tables(x).rows.coun t - 1)

and when that is more than the previous there is one added.

I hope this helps?

Cor

"Juan" <ju*****************@ANTISPAMhotmail.com>

Any help or advice is very welcome.

Thanks,
Juan.


Jul 21 '05 #3
Excelent documentation
http://www.akadia.com/services/dotnet_databinding.html

"Cor Ligthert" <no************@planet.nl> escribió en el mensaje
news:Ol*************@TK2MSFTNGP11.phx.gbl...
Juan,

You mean the datatable rowchange event?

http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfsystemdatadatatableclassrowchangedtopic.asp
The added row is forever
dataset.tables(x).rows(dataset.tables(x).rows.coun t - 1)

and when that is more than the previous there is one added.

I hope this helps?

Cor

"Juan" <ju*****************@ANTISPAMhotmail.com>

Any help or advice is very welcome.

Thanks,
Juan.


Jul 21 '05 #4

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

Similar topics

0
1061
by: Juan | last post by:
Do i have to loop trough a datagrid in order to find and select a row just being inserted in the dataset connected to the data grid? is there any event i can capture in the datagrid to obtain the...
2
9905
by: Chris Plowman | last post by:
Hi all, I was wondering if anyone can help me with a really annoying problem I have been having. I made a derived datagrid class that will select the row when a user clicks anywhere on a cell...
0
7528
by: Tal Sharfi | last post by:
Hi everyone I recently had the need for StringGrid object same as the one that Delphi has. An object that helps show lists of other objects in a simple grid. I searched the news groups and...
2
1514
by: Juan | last post by:
Do i have to loop trough a datagrid in order to find and select a row just being inserted? is there any event i can capture in the datagrid to obtain the inserted row? I need to obtain its position...
5
2620
by: Stephanie_Stowe | last post by:
Hi. I am trying to get used to AS.NET. I have been doing ASP classic for years, and am now in a position to do ASP.NET. I am in the stumbling around until I get my bearings phase. I hope you will...
2
1105
by: Rich Wallace | last post by:
I know datasets have been beaten to death in here, I have what is hopefully a simple question about the integrity of a dataset when used in an application. Scenario: User A and User B are...
13
1838
by: Saber | last post by:
I did a lot of searches and read something about datagrids. But I couldn't find the answer of my simple question, how can I show only my desired columns of a table? for example I wrote this sql...
1
2801
by: None | last post by:
Hi, I have developed webshop application using asp.net 1.1. I'm using DataGrid in one of the pages of my site. During the page load the DataGrid will be binded by around 7500 products(rows). At...
0
7057
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,...
0
7102
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6756
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...
0
7003
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4798
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...
0
3008
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...
0
3000
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
570
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
199
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...

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.