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

Extracting data from datagrids.

I am trying to get data from certain columns of a selected
row in a Datagrid.

In VB6, I simply wrote:

strVariable = DataGrid1.Columns(Index).Value

what is the equivalent in .NET?

Thanks,
Elena

Nov 20 '05 #1
2 890
Hi,

Dim strValue As String = DataGrid1.Item(DataGrid1.CurrentRowIndex, 1)

Ken

-----------------------

"ElenaR" <el**********@yahoo.com> wrote in message
news:01****************************@phx.gbl...
I am trying to get data from certain columns of a selected
row in a Datagrid.

In VB6, I simply wrote:

strVariable = DataGrid1.Columns(Index).Value

what is the equivalent in .NET?

Thanks,
Elena

Nov 20 '05 #2
THANK YOU, KEN!
-----Original Message-----
Hi,

Dim strValue As String = DataGrid1.Item (DataGrid1.CurrentRowIndex, 1)
Ken

-----------------------

"ElenaR" <el**********@yahoo.com> wrote in message
news:01****************************@phx.gbl...
I am trying to get data from certain columns of a selected row in a Datagrid.

In VB6, I simply wrote:

strVariable = DataGrid1.Columns(Index).Value

what is the equivalent in .NET?

Thanks,
Elena

.

Nov 20 '05 #3

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

Similar topics

2
by: Steve | last post by:
Hi, I have a very long string, someting like: DISPLAY=localhost:0.0,FORT_BUFFERED=true, F_ERROPT1=271\,271\,2\,1\,2\,2\,2\,2,G03BASIS=/opt/g03b05/g03/basis,...
5
by: Michael Hill | last post by:
Hi, folks. I am writing a Javascript program that accepts (x, y) data pairs from a text box and then analyzes that data in various ways. This is my first time using text area boxes; in the past,...
3
by: Alfred | last post by:
Hi I would like to extract only 15 records at a time from the backend in alfabetic order. Click on a button and then the next 15. Reason data must come over a 56k modem. The data is not...
4
by: ree32 | last post by:
I have a placeholder and depending on a user input(a drop downlist) when the user clicks a button I dynamically create a number of datagrids and fill them with data from a database. But the problem...
1
by: LeAnne | last post by:
I have a single datatable in a form, and two datagrids. I'd like to display the data in the datatable in both the grids. How ever, when i navigate (change the record position) in one grid, this...
2
by: p.mc | last post by:
Hi all, I'm using asp.net to display data from a SQL Server database, I've managed to display the data using dataGrids but now need to have more control over the display of the data. I'd like...
1
by: C4rtm4N | last post by:
I'm about to embark on re-writing a database & bespoke web reporting application for our call centre & would like a little advice please. Currently the database has 10 tables containing summaried...
2
by: rn5a | last post by:
In a shopping cart app, a ASPX page retrieves the order details & personal details of a user from a MS-Access database table depending upon the username of the user. The order details of a...
6
by: Werner | last post by:
Hi, I try to read (and extract) some "self extracting" zipefiles on a Windows system. The standard module zipefile seems not to be able to handle this. False Is there a wrapper or has...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.