Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 2.0 and Visual Studio. 2005 > .NET Framework 2.0
.NET Framework 2.0 For discussion of the Microsoft .NET Framework 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Framework 2.0 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 June 24th, 2006, 09:49 AM
Authorized User
Join Date: Nov 2004
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default check Box column in DataGridView control

Hi All,

          I am using C# as a programming language.

Now at my form i have a Data Grid View control. This datagrid is bound with my table named Documents.

Now at runtime i add a check box column in this grid. So that user can check which documents he needs.

Now i want to check a few check boxes in this particular column checked automatically at the Form Load event...

i just need to know that what code i should write to make the value of a check box = checked........

i have written code like

Grid.rows[e.rowIndex].cells[3].value = true;

This code executes fine.. but i can still see the check box empty.. means it is not checked...

if anybody has some idea... kindly help.....


Similar Threads
Thread Thread Starter Forum Replies Last Post
not showing column in datagridview jomet .NET Framework 2.0 6 March 15th, 2008 04:02 AM
DataGridView - allow column resize snufse .NET Framework 2.0 0 January 31st, 2008 10:33 AM
DataGridView column value snufse .NET Framework 2.0 3 January 30th, 2008 10:06 AM
Multi-column combo box in datagridview aad1 C# 0 June 5th, 2006 09:58 AM
Add User Control in DatagridView Column HemaChaudhry Visual Basic 2005 Basics 0 January 23rd, 2006 08:43 AM

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