473,396 Members | 2,158 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.

Updateing event of datagridview

I m using the datagridview.
Except Update event rest of the all i.e. Edit cancel, delete.
I want to read the cell content . if its a Quantity user may change it
so tht bases on tht i m going to calculet the price.

Dim tb1 as textbox
tb1 = CType(DataGrid2.row(e.rowIndex).cell(8).Control(0) , TextBox)

Dim a as string
a = tb1.text

REturns only "1".....Not the cell content.
What to do to get the Cell COntent which user may change and then
click Update!

Please advice!!

Mar 6 '07 #1
1 1020
For a Windows Forms DataGridView, you might try code like this to see
if it gives you what you want.

Dim val As Object = DataGridView1(colIndex, rowIndex).Value

========================
Clay Burch
Syncfusion, Inc.
Mar 6 '07 #2

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

Similar topics

5
by: Bob | last post by:
In a datagridview (vs2005, VB.net) I have two columns that are checkboxes. I need to check that only one of the two can be checked. Its not permissible to have the two selected to true, but they...
0
by: Rich | last post by:
Hello, I have been using "Concole.WriteLine("Event Name") for almost every event in the datagridview control, but I can't get the KeyPress event to file. My goal is to force uppercase on the...
0
by: NvrBst | last post by:
How does "e.CellStyle" work? When I do something like if(e.ColumnIndex == 0 && e.RowIndex == 0) DataGridView.Rows.DefaultCellStyle.BackColor = Color.Orange; then the entire table goes orange;...
0
by: SePp | last post by:
Hi all, I have three datagridviews filled by Datasets from a Database. I want to give the user the ability to enter contacts to persons which work in a company. The first datagridview is the...
3
nirmalsingh
by: nirmalsingh | last post by:
hai all, i have added a dropdownlist control inside a datagridview by datagridview.controls.add method, now i want fire the event of dropdownlist, but when i try it, event of datagridview is firing....
4
by: =?Utf-8?B?S2ltIFM=?= | last post by:
I have a Datagridview with a Price column ( in test string) how to get a messagebox then the price is negative. I know how to make a messagebox it's the event type in datagridview i don't know. ...
2
by: hnpatel | last post by:
Hi to All, How to use mouse click event for datagridview in c# in vs2005? I m using datagridview in c# application.I had bound data in datagridview.I want to display data in textbox when i...
4
by: kulabhishek | last post by:
Hello all, I am using DataGridView in my user control and its CellPainting event in C#. I have some merged cells in my control. When I drag & drop my control in other application,...
0
by: priyamtheone | last post by:
I'm trying to make a datagridview column to act like a datetimepicker column (C#.Net 2005). These are the behaviours that the dgv should have: 1) Initially all the cells of the dtp column should be...
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...
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:
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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.