-
i need create a checkbox column for an existing datagrid at runtime.Then for the records which user selects from datagrid items by selecting the checkbox, that records will be updated with some user defined values in database.My problem is how to check for checked state of checkbox in vb.net 2003 windows application.
thanks
chandru
-
for just event handling of checking use ColumnCheckedValueChanged, and for late check of value try to use directly value of subordinate datatable
-
actually i need to select a multiple records through checking corresponding checkboxex.but don't know the code for it.can u guide me.
thank you
-
and for what purpose, somehow in middle detail
-
first i'm fetching some records from database using sql query into a datagrid.
then among the listed records for some particular records i need to change the data of a field in database corresponding to these rows.
pls refer the code...as i exactly don't know how to do it
Dim c As CheckBox
c = ds1.Tables("MasterTaskDetails").Columns("checkb").ExtendedProperties.Item(i)
If c.Checked = True Then
MessageBox.Show("checked")
'''''''database update code goes here
End If
but eventhough i'm selecting a record in datagrid, c.checked always displays false...
-
I suppose you need "immediate edit" ... or would you welcome updating a database just before exit for, or with some big blue save all button :)
-
***"exit form"
-
after selecting multiple records through some button click event i will update the database.
pls tell me how to check for the check state of the selected rows. i have checkbox column name as "checkb".
-
If [this](http://quilt.ic.cz/tmp/devfus/datagrid_checkbox_override.rar) was not what would moved you over, we can continue to find some more intrinsic solution
-
:) or you can move over and if you just found some natural way to do this trick you could tell me, I would be interested...
-
i'm nowhere finding how to do this task.k
anyway thanks for ur help.
-
I am bit confused with DatagridTextBoxCell and its beginedit and endedit events... because it is really something different to how CheckBox works... endedit basically confirmed all value of datagrid to dataset, and this set then passed to adapter updated db... I am also bit lost, while it is long time I have worked with grids...
good luck
-
hi can u giv me solution to my question posted- its urgent
the post abt dropdownlist with image icons as listitems - by kishore
-
hi can u giv me solution to my question posted- its urgent
the post abt dropdownlist with image icons as listitems - by kishore
-
check out pages of Mick Doherty, dotnetrix.com
regards, matej
Enter your message below
Sign in or Join us (it's free).