Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27554

set radio buttons based on integers from tableadapter query

$
0
0
Using VB 2012 and sqlexpress. I have a grid with a hidden column (TaskID) which is filled with the primary key for the task record displayed in that row. Here is the code I use to return one record from the table based on the text in that hidden cell on the selected row.
Code:

Dim x As String
x = TaskGrid.ActiveRow.Cells("TaskID").Text
TasksTableAdapter.FillTaskByTaskID(Ds_Tasks.Tasks, x)

In this table is a tinyint field for whether the task is complete(1) or not(0). The form has a group of 2 radio buttons - one for complete and one for incomplete. I am having trouble figuring out how to check the correct button based on the returned data.

TIA
Ken

Viewing all articles
Browse latest Browse all 27554

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>