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

Datagridview problem

I have a datagridview I call the CellValidating event and if the the cell
does not validate I want to reset the cell to a default value. My code
actually executes this statement:

datagridview1.CurrentRow.Cells[Columnx].Value = defaultValue;

but the statement does not change the cell at all. The datagridview is not
bounded to any datasource.

--
L. A. Jones
Aug 31 '06 #1
0 1092

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

Similar topics

0
by: Irfan | last post by:
hi, I have a 'TimeSheet' Table in the database that holds data about the time spent by an employee on each project on a particular day. TS_pk Emp_fk Project_fk hrsWorked ...
0
by: Pieter Coucke | last post by:
Hi, I have a DataGridView, that contains a list of Articles, which can be added (automaticly via the AllowUserToAddRows) and changed by the user. The current item is also displayed in textboxes...
1
by: sapkal.manish | last post by:
Question : How can I find actual row position of DataTable in DataGridView when DataTable is sorted / My source code like this Private WithEvent dgvInwDet as new DataGridView Private...
1
by: Martin | last post by:
Hi, I'm having a problem with a datagridview control when trying to read the value of an unbound checkbox cell. The code below works fine if I click on any text cell, bound or unbound, and...
0
by: Paul | last post by:
I want to create a class that inherits from the DataGridView. I want to initialize the class with three columns. Below is the code. Then my problem is stated afterwards. Public Class...
0
by: Tim Wallace | last post by:
I have a DataGridView object in a C# desktop app (.NET 2.0, by the way). I am setting the DGV to use a SelectionMode of "ColumnHeaderSelect". I am dynamically creating all of the columns and when...
6
by: =?ISO-8859-1?Q?Andrea_M=FCller?= | last post by:
Hello, I have one problem. Include my project is a dataset with tables. During my process I create a new temporary table. The dataset use my DataGrid Control. The use delete now one, two...
1
by: fatimang | last post by:
aloha!!!!!........ how to manipulate the record pointer of the table inside the datagridview. plz show the codes related to this problem.... thank u.....
2
by: swapnil350 | last post by:
I have developed an application in vb.net (Win32 Appl) I have problem in datagridview i have uploaded image which where i made a red colored circle image :- ...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: 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:
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?
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...

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.