473,385 Members | 1,856 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,385 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 1640

"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: 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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.