Click here to Skip to main content
15,891,859 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: VBA Previous sheet copy Pin
Dalek Dave26-May-10 3:59
professionalDalek Dave26-May-10 3:59 
QuestionHow to serialize shared members of a class? Pin
MohammadAmiry26-May-10 0:32
MohammadAmiry26-May-10 0:32 
AnswerRe: How to serialize shared members of a class? Pin
Dave Kreskowiak26-May-10 2:02
mveDave Kreskowiak26-May-10 2:02 
QuestionDatagridview checkbox enter key Pin
C#Coudou25-May-10 15:04
C#Coudou25-May-10 15:04 
AnswerRe: Datagridview checkbox enter key Pin
Dr.Walt Fair, PE25-May-10 15:41
professionalDr.Walt Fair, PE25-May-10 15:41 
GeneralRe: Datagridview checkbox enter key Pin
C#Coudou25-May-10 15:56
C#Coudou25-May-10 15:56 
GeneralRe: Datagridview checkbox enter key Pin
Dr.Walt Fair, PE25-May-10 16:47
professionalDr.Walt Fair, PE25-May-10 16:47 
GeneralRe: Datagridview checkbox enter key [modified] Pin
C#Coudou25-May-10 18:35
C#Coudou25-May-10 18:35 
Walt Fair, Jr. wrote:
Are you sure that Col = 5?

yes this will work bcoz i have 10 columns but in colum 5 and 6 is checkbox.
Walt Fair, Jr. wrote:
How does your control know when Col = 5 has been selected?

C1truedbgrid can handle columindex.

yes it will compile and working in C1 which i can get the colum index.in this application user doesn't have a mouse so only keypad.

this is the case, i have two colums in C1datagrid which is all checkbox.
for instance: by default all checkbox value are false.

so when user hit the enter key in column1, the checkbox value in column1 will return to true and automatically checkbox value in column2 will return to false and vice versa.

i have test this using normal key like spacebar/mouseclick and smoothly working in afterupdate event of c1truedbgrid but like i said if enter key doesnt work in afterupdate event so i use the keypress event which is you suggest at first.

example:
 Private Sub C1grid_AfterColUpdate(ByVal sender As  System.Object,ByVal e As C1.Win.C1TrueDBGrid.ColEventArgs)Handles C1grid.AfterColUpdate

        If e.ColIndex = 1 Then
                'first checkbox
            If CBool(Me.C1grid.Columns("NDFlag").Value) = True Then
                'second checkbox
                Me.C1grid.Columns("KMFlag").Value = False
            Else
		Me.C1grid.Columns("KMFlag").Value = True
            End If
	 ElseIf e.ColIndex = 2 Then
               'second checkbox
            If CBool(Me.C1grid.Columns("KMFlag").Value) = True Then
                'first checkbox
                Me.C1grid.Columns("NDFlag").Value = False
            Else
		Me.C1grid.Columns("NDFlag").Value = True
            End If
	EndIf

End Sub

C# コードMicrosoft End User
2000-2008




「「「「「「「「「「「「「「「「「「「「「「「「「「「「
The best things in life are free
」」」」」」」」」」」」」」」」」」」」」」」」」」」」


modified on Wednesday, May 26, 2010 12:51 AM

GeneralRe: Datagridview checkbox enter key Pin
Luc Pattyn25-May-10 18:59
sitebuilderLuc Pattyn25-May-10 18:59 
GeneralRe: Datagridview checkbox enter key Pin
C#Coudou25-May-10 20:33
C#Coudou25-May-10 20:33 
GeneralRe: Datagridview checkbox enter key Pin
Dr.Walt Fair, PE26-May-10 4:51
professionalDr.Walt Fair, PE26-May-10 4:51 
QuestionMSFlexGrid with Arrays Pin
Shane.R.G25-May-10 14:36
Shane.R.G25-May-10 14:36 
Questionconection with postgre Pin
mabrahao25-May-10 10:33
mabrahao25-May-10 10:33 
AnswerRe: conection with postgre Pin
Luc Pattyn25-May-10 10:46
sitebuilderLuc Pattyn25-May-10 10:46 
QuestionScrolling a text box Pin
Pasan14825-May-10 8:04
Pasan14825-May-10 8:04 
AnswerRe: Scrolling a text box Pin
Luc Pattyn25-May-10 8:44
sitebuilderLuc Pattyn25-May-10 8:44 
JokeRe: Scrolling a text box Pin
William Winner25-May-10 9:27
William Winner25-May-10 9:27 
GeneralRe: Scrolling a text box Pin
DaveAuld25-May-10 9:34
professionalDaveAuld25-May-10 9:34 
GeneralRe: Scrolling a text box Pin
William Winner25-May-10 9:43
William Winner25-May-10 9:43 
GeneralRe: Scrolling a text box Pin
Dr.Walt Fair, PE25-May-10 9:36
professionalDr.Walt Fair, PE25-May-10 9:36 
GeneralRe: Scrolling a text box Pin
Luc Pattyn25-May-10 9:42
sitebuilderLuc Pattyn25-May-10 9:42 
AnswerRe: Scrolling a text box Pin
William Winner25-May-10 9:29
William Winner25-May-10 9:29 
Question[VB.NET] TextBox's Multiple text into ListView items and subitems Pin
Dimz9325-May-10 4:38
Dimz9325-May-10 4:38 
AnswerRe: [VB.NET] TextBox's Multiple text into ListView items and subitems Pin
DaveAuld25-May-10 5:23
professionalDaveAuld25-May-10 5:23 
AnswerRe: [VB.NET] TextBox's Multiple text into ListView items and subitems Pin
William Winner25-May-10 6:33
William Winner25-May-10 6:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.