PC Review


Reply
Thread Tools Rate Thread

Datagridview problem

 
 
=?Utf-8?B?RGF2ZQ==?=
Guest
Posts: n/a
 
      31st Aug 2006
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
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Refreshing Linq query to update second DataGridView when position in first DataGridView changes Arved Sandstrom Microsoft C# .NET 1 25th May 2008 04:06 AM
DataGridView (.NET 2.0 Windows Forms) Text wrapping in DataGridView Items Chris Hayes Microsoft Dot NET Framework 1 27th Aug 2006 06:07 PM
Clearing selection in DataGridView when user clicks outside the DataGridView control djyakov@gmail.com Microsoft Dot NET Framework Forms 0 16th Feb 2006 06:38 PM
Refreshing datagridview contents after a failed delete in bound datagridview Bob Microsoft VB .NET 0 5th Jan 2006 06:34 PM
DataGridView Problem... =?Utf-8?B?WHRlaw==?= Microsoft ADO .NET 0 21st Dec 2005 07:20 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:48 AM.