473,385 Members | 1,766 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.

Need programming conversion help VB.NET to C# 2005

... what is the equivalent of

Expand|Select|Wrap|Line Numbers
  1. DatagridView1.item(1,1).value
in C#

i have looked and tried everything, in MSDN it says C# has the item class, but it doesn't when i try to code it.

thanks in advance for any help, its much appreciated.
Jul 14 '07 #1
3 1095
bump..........................
Jul 16 '07 #2
vanc
211 Expert 100+
... what is the equivalent of

Expand|Select|Wrap|Line Numbers
  1. DatagridView1.item(1,1).value
in C#

i have looked and tried everything, in MSDN it says C# has the item class, but it doesn't when i try to code it.

thanks in advance for any help, its much appreciated.
DatagridView does have Item member to gets or sets the cell located at the intersection of the specified row and column
--> DatagridView1.Item().Value

cheers.
Jul 16 '07 #3
Plater
7,872 Expert 4TB
DataGridView has a more defined construct in C#

To grab the 2nd item in the 3rd row use:
Expand|Select|Wrap|Line Numbers
  1. myDataGridView.Rows[3].Cells[2]
  2.  
It returns an object of type DataGridViewCell.

To get the value:
Expand|Select|Wrap|Line Numbers
  1. myDataGridView.Rows[3].Cells[2].Value
  2.  
Which returns the Object type. To find out what type it is you can use:
Expand|Select|Wrap|Line Numbers
  1. myDataGridView.Rows[3].Cells[2].ValueType
  2.  
That should get you started.
Jul 16 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

45
by: Joh | last post by:
hello, i'm trying to understand how i could build following consecutive sets from a root one using generator : l = would like to produce : , , , ,
0
by: voipcanada | last post by:
NEED CONVERSION FOR "14:10:01.000 GMT Sat Oct 22 2005" AS "2005-10-22 14:10:01" thanks
14
by: junky_fellow | last post by:
Can anybody please explain this: When a value with integer type is converted to another integer type other than _Bool, if the new type is unsigned, the value is converted by repeatedly...
11
by: Peter Oliphant | last post by:
I've been trying all morning to convert my 2003 project (managed) to 2005 (/clr since I have both managed and unmanaged code). I'm guessing I have tens of thousands of lines of code to change. Did...
11
by: Larry | last post by:
I will be teaching an eCommerce application development course using ASP.Net after many years of having taught classic ASP. (Course was interrupted by 18 months in the Middle East with my Army...
1
by: musosdev | last post by:
Hi I've got a project I've just run through the conversion wizard, and it's giving me a few headaches. I've got a user control which has controls referrenced from its calling page...
7
by: Charlie Brookhart | last post by:
I have a program (posted below) that is supposed to take liters, which is the user input, and convert it to pints and gallons. The pints and gallons are displayed in a read only textbox. I don't...
31
by: Martin Jørgensen | last post by:
Hi, I've had a introductory C++ course in the spring and haven't programmed in C++ for a couple of months now (but I have been programmed in C since january). So I decided to do my conversion...
5
by: Ivan Velev | last post by:
Hello, Minimal example below - it gives me different output if I comment / uncomment the extra time.mktime call - note that this call is not related in any way to main logic flow. When...
2
by: Netwatcher | last post by:
Hello, i am new to c++ windows and DX programming, i encountered a code in the book stated in the title, which doesn't work for a reason, here is the code // Beginning Game Programming // Chapter...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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.