473,659 Members | 2,540 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

2005 Studio headache

Hi all. Sorry about the crude headline but this problem is really
giving me a headache. See I am currently deloping an app in Visual
Studios 2005 C# Lanuage and the thing is like this: I have a
DataGridView on my form. In this DataGridView is a
DataGridViewChe ckBoxColumn and I want to get the value (either true or
false) as I click on the cell(meaning when I change the checked box
unchecked or the other way around) Now like a regular checkbox I want
to use something like Checked so that I can also change the column
programmaticall y. But there isn't any events or something like that.
The DataGridView is not databound to my database. The connections and
commands are handled seperately in another program. All I want is a
messagebox to show me after I clicked on the DataGridCheckBo xColumn to
show me either checked(true) or unchecked(false )

Please can anybody help me. I gratly appreciate any kind of help on
this.

Thanks
Echo

Mar 14 '06 #1
3 1450
Have you looked at the CellClick event?

Mar 14 '06 #2
Did you check out the current cell value

like this

I hope this helps you out :-)

private void dgrd_RowValidat ing(object sender,
DataGridViewCel lCancelEventArg s e)
{

if (
dgrd.CurrentRow .Cells[0].Value == null
||

String.IsNullOr Empty(dgrd.Curr entRow.Cells[0].Value.ToString ())
)
{
bool b=Convert.ToBoo lean(dgrd.Curre ntRow.Cells[0].Value);
}
}

"Echo" wrote:
Hi all. Sorry about the crude headline but this problem is really
giving me a headache. See I am currently deloping an app in Visual
Studios 2005 C# Lanuage and the thing is like this: I have a
DataGridView on my form. In this DataGridView is a
DataGridViewChe ckBoxColumn and I want to get the value (either true or
false) as I click on the cell(meaning when I change the checked box
unchecked or the other way around) Now like a regular checkbox I want
to use something like Checked so that I can also change the column
programmaticall y. But there isn't any events or something like that.
The DataGridView is not databound to my database. The connections and
commands are handled seperately in another program. All I want is a
messagebox to show me after I clicked on the DataGridCheckBo xColumn to
show me either checked(true) or unchecked(false )

Please can anybody help me. I gratly appreciate any kind of help on
this.

Thanks
Echo

Mar 14 '06 #3
Hi me again. Thanks for the replies but actually none of them actually
work. It brings me with a messagebox that shows 'true' all the time
until I press Enter key twice then it changes to false. Here is a
sample code for a standard checkbox. Is there a way on how I can use it
with that column?

eg. MessageBox.Show (checkBox1.Chec ked.ToString()) ;

See I am looking for a code snippet but I can't find it for the
DataGridViewChe ckBoxColumn that can also use the Checked.ToStrin g()
function. Is there another way around?
Thanks for the replies and help.

Echo

Mar 15 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2303
by: Shapper | last post by:
Hello, I am starting 2 new projects to deliver in January 2006. I want to create them in Asp.Net 2.0 using Visual Studio 2005. All my clients web sites are Visual Studio 2003 projects in Asp.Net 1.1 / VB.NET. These web sites use Access Databases and NOT Microsoft SQL 2000. In the future I will need to make a few changes now and then to this web sites.
13
1938
by: Howard Kaikow | last post by:
I just visited the MSFT web site and saw the comparison/pricing of the different VS 2005 versions. I was looking for a statement of the system requirements for VS Pro and VSTO, could not find. Also, more details on the differences between VS Pro and VSTO. For example, can VSTO be used to create a DLL, in particular, a DLL that can be used as an ActiveX DLL with Office? In VSTO, other than the addition of the support for Office 2003...
54
6421
by: m.roello | last post by:
In the book: "Working with Microsoft Visual Studio 2005" Craig Skibo wrote: "The power of Visual Studio 2005 lies in its ability to empower users to build, test, and debug powerful applications quickly and easly." I don't agree on what concernes ASP .NET Web Sites in VS2005. All what involves Namespaces in Web sites has been disappeared. I know you can still MANUALLY manage them, but not QUICKLY and EASLY. In a
4
1837
by: Learner | last post by:
we can download the Management Studio Express for free from MS website. I did the same thing on my personal laptop. But can we develop applications using free downloaded Management Studio and deploy later on with the free stuff at work? Or else may i want to get it off Sql server 2005 that we got when we bought the software.
3
1382
by: dean4if | last post by:
I have 4 Windows 2000 Servers. I have installed the DotNet Framework 2.0 on all 4 servers. Three of these servers show a tab for ASP.NET in the IIS MMC and are running Visual Studio 2003. One server that has Visual Studio 2005 installed does not show this ASP.NET tab. On this one server, when I use Visual Studio 2005 to try to create or open a
0
3337
by: fiona | last post by:
Innovasys Ltd., a leader in help authoring and documentation tools, today announced the inclusion of a tailored version of the Innovasys HelpStudio help authoring product, HelpStudio Lite, in the Microsoft Visual Studio 2005 Software Development Kit. By providing a full help authoring environment within the Visual Studio 2005 SDK, Innovasys is providing developers building components and products that integrate with Visual Studio 2005 a...
10
2518
by: WT | last post by:
Hello, I have been publishing my web site many times to the remote where resides my final web site. Everything was ok, but to-day, without any configuration change, vs doesn't copy final files to the remote site. It finish with a message of publish sucess but no files nor folders on the remote disk ? I have checked rights on this folder, everyone have modify.
3
6052
by: Edwin Smith | last post by:
I have a 2 form project in VS2005 that now hangs whenever I try to do anything with the second form. This seems to have started when I added some SQL tables from a Pervasive v.9 database using the Pervasive ODBC driver. The devenv.exe process hangs and will not respond with about 50% cpu usage and about 100 megs of memory used. I am running it on an Athlon 64 bit dual core with 32 bit Windows XP pro. I have 2 megs of memory so I don't...
6
1868
by: Author | last post by:
I have VS 2005 professional. Here is the version info: Microsoft Visual Studio 2005 Version 8.0.50727.762 (SP .050727-7600) © 2005 Microsoft Corporation. All rights reserved. When I try to create a new project, I don't have a web application project option. In the New Project window, I select Visual C# under Project types, and on the right side, I only have the following
0
8428
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8341
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8539
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8630
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7360
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6181
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4176
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4342
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1739
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.