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 March 8th, 2006, 09:36 PM
Registered User
 
Join Date: Mar 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help needed with CheckBoxes

Hi teams,

This is saravanan, I am working in Bangalore,India. I have some problem in inserting a checkboxes on the flexgrid. I am using C#.Here some piece of code i tried

switch(axMSFlexGrid1.Col)
            {
                case 0:
                case 1:
                case 2:
                case 3:
                case 4:
                case 5:
                case 6:
                case 7:
                        MessageBox.Show("CilcikeD");
                        break;
                case 8:

                    chkSelect.Visible = true;

                    chkSelect.Show();
                    chkSelect.BringToFront();
                    chkSelect.Left = axMSFlexGrid1.Left + axMSFlexGrid1.CellLeft;
                    chkSelect.Top = axMSFlexGrid1.Top + axMSFlexGrid1.CellTop;
// if(axMSFlexGrid1.Text == "0")
// {
// chkSelect.Text ="1";
// }
// else
// {
// chkSelect.Text = "0";
// }

                    chkSelect.Focus();
                    chkSelect.Visible = true;
                    break;

            }

I wrote this code in ClickEvent of flexgrid... Any thing wrong in this?? Please reply me with ur answer.. CheckBox is a one of the control in the form

Thanks in advance

Reply me back






Similar Threads
Thread Thread Starter Forum Replies Last Post
Pagination with checkboxes argan Pro JSP 2 November 28th, 2008 12:48 AM
Loop through checkboxes Godko Visual Studio 2005 1 April 9th, 2006 11:32 PM





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