PC Review


Reply
Thread Tools Rate Thread

Default values when adding new datarow

 
 
=?Utf-8?B?R3VkbmkgRy4gU2lndXJkc3Nvbg==?=
Guest
Posts: n/a
 
      27th Nov 2006
Hi.
I have wired up a dataGridView, a bindingSource and a bindingNavigator on a
WindowsForm. The DataSource for the bindingSource is a DataSet containing a
table, say Orders.
When the addNewItem button on the navigator is pushed, I want to provide
some default values for columns in the new row in the grid: e.g.
CustomerNumber and OrderNumber (incremented by one). What is the usual way
of doing this? A code sample would be appreciated.

Gudni
 
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
VS2005 - DefaultValuesNeeded - bug? Adding default values in DataGridView dbuchanan Microsoft Dot NET Framework Forms 6 8th Dec 2005 07:23 PM
VS2005 - DefaultValuesNeeded - bug? Adding default values in DataGridView dbuchanan Microsoft VB .NET 6 8th Dec 2005 07:23 PM
Adding new row with default values. Viorel Microsoft C# .NET 2 6th Jul 2005 07:58 AM
Adding datarow to datarow and datragrid DotNetJunkies User Microsoft VB .NET 1 15th Jul 2004 12:42 AM
Default values in Access database not applied to Dataset datarow... Tim Frawley Microsoft VB .NET 3 3rd Mar 2004 02:33 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:47 AM.