Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 20th, 2004, 12:47 PM
Registered User
 
Join Date: Oct 2003
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Datagrid default value

Hello all

Does anyone know how to set a default value for new rows in a datagrid. The problem I'm having is the colunm shows the default value I set, but the underlying value is still "Null". Inorder for the record to contain something other than "Null", the user has to type a value or it will not hold.

Please help

EM
 
Old May 21st, 2004, 11:20 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

The values come from the DataSet u bind to DataGrid, what ever u add it'll shown in ur Grid. so check where u add to DataSet & ...
HTH.

Always:),
Hovik Melkomian.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom paging in Datagrid with datagrid page count madhusrp ASP.NET 1.0 and 1.1 Professional 12 June 2nd, 2008 01:15 PM
example of editing in DataGrid and Default Paging hanusoft ASP.NET 1.x and 2.0 Application Design 0 October 4th, 2007 08:13 AM
Setting Default values of DataGrid in C#2005 saxitalis C# 2005 0 August 15th, 2007 03:33 PM
DataGrid Default Values in C# saxitalis C# 0 August 15th, 2007 03:30 PM
default ambrosejp SharePoint Admin 2 April 20th, 2006 01:56 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.