Re: returning data from SQL
- From: "Cor Ligthert [MVP]" <notmyfirstname@xxxxxxxxx>
- Date: Mon, 21 Nov 2005 19:40:53 +0100
>I posted the following question here before, but got no response. Am I
> posting it in the right place? If not, please tell me where can I get help
> on
> that subject?
Can you show us which post, I cannot find anything about it.
> Below is the question:-
>
> I have a windows form that has a group box having 2 check boxes. The form
> is
> bound to a table in a SQL database (I configured the SQL connection, data
> adapter, dataset) There is one column on that SQL table that I want when
> it
> has a value of "xxx", when loading the windows from, one of the checkboxes
> is
> checked. I wrote the following code which is obviously wrong. Please
> help!!
>
> Select Case DataSet_FPIntake.FP_Intake.HomeTypeColumn.Caption
> Case "FBH"
> ChBox_HomeType.Checked = True
>
Would you not use a radiobutton, that is more build for that?
Although both you can only bind to a boolean column, that is where they are
made, not for a string.
Cor
.
- Prev by Date: Re: Checkbox
- Next by Date: Re: Get CurrentDate into TimeSpan
- Previous by thread: Re: returning data from SQL
- Next by thread: Re: returning data from SQL
- Index(es):