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

datagrid item selection

How do you return the value of a row selected from the datagrid using c#?
All that is displayed in intellisense is IsSelected which returns if a
specific row is selected.

Thanks!
Jul 21 '05 #1
1 1641

"Eddie B." <eb*****@chnola-research.org> wrote in message
news:%2******************@tk2msftngp13.phx.gbl...
How do you return the value of a row selected from the datagrid using c#?


DataRow dr =
((DataRowView)BindingContext[MyDataGrid.DataSource].Current).Row;

---
Steven Wood
Jul 21 '05 #2

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

Similar topics

0
by: Alan Z. Scharf | last post by:
Win Server 2003 VS.Net 2003 --------------- 1. I'm having the same problem below on all six of my pages with a datagrid item. 2. These pages all worked fine for months until problem started....
2
by: Tomek R. | last post by:
Hello ! I've got weird problem when adding new datagrid item. Here is the situation: my grid dgDeps is binded to DepartmentList arraylist, stored in Session between round-trips.. To add new...
3
by: louise raisbeck | last post by:
Hi, I have been on this for hours and just cannot work it out. I have a datagrid. I set the edititem index to a row to edit, that works. However if i want to put a value into this textbox it wont...
2
by: rodchar | last post by:
Hey all, I have a datagrid that has a select column. I've bound an untyped data table to the datagrid and was just wondering how I would get to all the values of a row when a user selects a row?...
1
by: barbara_dave | last post by:
Hi, all, I know Listbox control has multiple and single mode for item selection. I need to use multiple selection mode, but I like to select items with shift or ctrl key and mouse. The reason...
1
by: Eddie B. | last post by:
How do you return the value of a row selected from the datagrid using c#? All that is displayed in intellisense is IsSelected which returns if a specific row is selected. Thanks!
0
by: MGRIDEOUT | last post by:
Hello, I have a datagrid in which I click a user's name and get a another datagrid (DG2) displaying all records for that individual user. In DG2 I need to check the Due Date colunm to ensure due...
0
by: slinky | last post by:
I'm using VS2003 VB.net/ASP.net and have a Datagrid on an .ASPX page that is successfully displaying the records I was expecting. The next step I want to do is to double-click a line (record) and...
1
by: brendangallaghe | last post by:
I have have a .net (3.5) user location dropdown menu (System.Web.UI.WebControls.DropDownList) called ddlLocation, that when the user selects a location menu item that item is saved in a database...
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...
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
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
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.