Control check box in ComponentOne datagrid

Hi, expert...

i would like to control every check box in the row which when the check state change.... the caption at others columns also will change...during the design time....i had set "Presentation" = CheckBox.  May i know what is the code to control the checkbox check state?

Thank you.
chkuehAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

G0ggyCommented:
CheckBox1.Checked will check a check box.
0
ElrondCTCommented:
I haven't used ComponentOne's products, but in general if you want to know when a check box inside a DataGrid has changed, you'll need to set up an event handler for the table's ColumnChanging event, like so (where ds is the DataSet, and dtTable is the DataTable within the DataSet that your DataGrid is displaying):
' Put this line in the Form Load event handler
    AddHandler ds.dtTable.ColumnChanging, New DataColumnChangeEventHandler(AddressOf MyTableColumnChanging)

    Private Sub MyTableColumnChanging(ByVal sender As Object, ByVal e As DataColumnChangeEventArgs)
        If e.Column.ColumnName = "Presentation" and e.ProposedValue = True Then
            ' Do whatever you want when the box is checked
        End If 
    End Sub

Open in new window

0
CodeCruiserCommented:
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

chkuehAuthor Commented:
Hi, ElrondCT...

should i need to declare anythings 1st before i put "AddHandler ds.dtTable.ColumnChanging, New DataColumnChangeEventHandler(AddressOf MyTableColumnChanging)" at form load? because i get an error "dtTable is not a member of 'System.Data.DataTable".

even i change my dataSet to my own...the error is "dtKitting is not a member of 'System.Data.DataSet"...

what should i do first? thanks..
0
ElrondCTCommented:
"ds.dtTable" needs to be changed to your DataSet and DataTable names. They need to be declared before the AddHandler statement.
0
chkuehAuthor Commented:
Problem partial solved. thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.