Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET 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 April 14th, 2004, 03:37 PM
Registered User
 
Join Date: Apr 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default DataGrid DataColumn Property Set at Run-time

I have a windows application that uses a datagrid to display three fields from a sql server 2000 database table. Two of the fields are character fields, with a length of 1, that are translated as boolean columns in the datagrid. Is there a way to disable the second boolean field based on the value of the first boolean field? I am assuming this would mean setting the column property to ReadOnly at run-time. I don't want to allow the user to change the value of the second boolean field unless the first boolean field is false, or unchecked.

Also, is there a way to disable the NullValue setting so that they can only select true or false? My sql table fields do not allow nulls.

Any advice would be greatly appreciated.





Similar Threads
Thread Thread Starter Forum Replies Last Post
how set Attribute of Folder at Run Time Rahul Gupta Pro VB 6 2 October 17th, 2007 11:55 PM
Set AdoDc properties at run time Psionman Pro VB Databases 2 November 10th, 2004 10:07 AM
DataColumn .Unique property not being set gp_mk ADO.NET 3 November 4th, 2004 06:50 AM
could i hide a column at run time from datagrid alyeng2000 ASP.NET 1.0 and 1.1 Basics 10 January 17th, 2004 03:26 PM
How to set the multiline property at run time? harini19 VB How-To 3 January 9th, 2004 03:52 PM





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