How to BindingData to RadioButton
-
the problem is I'm designing a dataform which is liked with sql server 2000 table , on the table i have tree or more choices and I want the user to choose only one of them , i use for it a group of RadioButton but i can't binding it to the database how can i Binding data to the radiobutton , thanks for all
jooooo
-
the problem is I'm designing a dataform which is liked with sql server 2000 table , on the table i have tree or more choices and I want the user to choose only one of them , i use for it a group of RadioButton but i can't binding it to the database how can i Binding data to the radiobutton , thanks for all
jooooo
hi my working now is stopped , any one try to help me , or give me a we :sigh::sigh::sigh:
jooooo
-
hi my working now is stopped , any one try to help me , or give me a we :sigh::sigh::sigh:
jooooo
I don't think anyone can understand the Question, what is you want to bind the Radio buttons to? Do you want the radio button text to come from the Database? Or the useres selection be logged in the database?
-
I don't think anyone can understand the Question, what is you want to bind the Radio buttons to? Do you want the radio button text to come from the Database? Or the useres selection be logged in the database?
Thanks my friend i mean bind the Radio buttons to the useres selection to be logged in the database not the text of it i wait you
jooooo
-
Thanks my friend i mean bind the Radio buttons to the useres selection to be logged in the database not the text of it i wait you
jooooo
I don't think Binding the radio buttons to a database is even possible in that manner, and if it is I don't think its the right way to go about it. What you would probably want to do is handle the
RadioButton.CheckChaged
Event and then do an insert or update statement using a SLQDataAdapter or SQLCommand. Kevin -
I don't think Binding the radio buttons to a database is even possible in that manner, and if it is I don't think its the right way to go about it. What you would probably want to do is handle the
RadioButton.CheckChaged
Event and then do an insert or update statement using a SLQDataAdapter or SQLCommand. KevinThanks Kevin I use the Radio button to binding to field on the table for ex : on the table the user will choose between three cases , the method of Stock evaluation : choose on 1- FIFO 2- LIFO 3- Cost Average I want to make the three choice as Radio button and binding it to the tree fields on database i'm waiting your reply eagly :rose:
jooooo
-
Thanks Kevin I use the Radio button to binding to field on the table for ex : on the table the user will choose between three cases , the method of Stock evaluation : choose on 1- FIFO 2- LIFO 3- Cost Average I want to make the three choice as Radio button and binding it to the tree fields on database i'm waiting your reply eagly :rose:
jooooo
That was pretty vague but if I understand correctly there are 3 fields in a table in the database, and you want to use the radio buttons to choose which field to select from?
dim Field as string IF rdb1.checked THEN field = 'field name else if rdb2.checked THEN field = 'field name 2 else field = 'field name 3 end if
Thas pretty bad programing style but for purpose of explination it will suffice Now you perform the select statementSomeAdapter.SelectCommand.CommandText = "SELECT " & Field & " FROM some table WHERE somecontraints
hope that helps