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

how to select an inserted row ina datagrid?

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 in the datagrid...

Any help is very welcome.
Nov 16 '05 #1
2 1513
hi juan,

am not able to get your question, what do u mean by inserting a row in a
datagrid.
and r u talking about the datagrid in windows or web.
If am right in saying that inserting a row in a webforms datagrid is none
other than adding a new row to the dataset and rebinding it to the grid.

Might be able to help you better if i can get exactly what you wanted....

Regds,
Kannan.V

"Juan" wrote:
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 in the datagrid...

Any help is very welcome.

Nov 16 '05 #2
Thanks Kannan,

I insert the row but afther that i immediately need to select it, the
datagrid doesn´t select the new inserted row by default, it continues to be
at the row it was before the insert... it is a windows form.

Best,
Juan.
"Kannan.V [MCAD.net]" <Ka************@discussions.microsoft.com> escribió en
el mensaje news:6B**********************************@microsof t.com...
hi juan,

am not able to get your question, what do u mean by inserting a row in a
datagrid.
and r u talking about the datagrid in windows or web.
If am right in saying that inserting a row in a webforms datagrid is none
other than adding a new row to the dataset and rebinding it to the grid.

Might be able to help you better if i can get exactly what you wanted....

Regds,
Kannan.V

"Juan" wrote:
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 in the datagrid...

Any help is very welcome.

Nov 16 '05 #3

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

Similar topics

2
by: M Wells | last post by:
Hi All, I need to change a column value in several thousand records in a table and output a list of the record ids of the records I've updated into another table. The table, however, is being...
0
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...
0
by: Juan | last post by:
I built a form with two datagrid representing a master-detal relationship, everything works fine except fot the first row inserted in the dataset (in the detail table), it is not displayed after...
2
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...
5
by: Vik | last post by:
If there are a few Select buttons in a datagrid, is there a way to distinguish in code which button was clicked? Thanks.
8
by: Malc | last post by:
Can somebody please tell me whether the following syntax is supported or whether it's a "feature" that will someday stop working. It works in both SQL Server 2000 and 2005 at the moment. declare...
1
by: new | last post by:
I am building an effective dated file that shows results to date. In part 1 of the select I I process a larges set of input and genrate records for each date in the processing period for which...
13
by: PinkBishop | last post by:
I am using VS 2005 with a formview control trying to insert a record to my access db. The data is submitted to the main table no problem, but I need to carry the catID to the bridge table...
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: 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:
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...
0
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...
0
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...
0
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,...

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.