da = New SqlDataAdapter("select distinct( name) from sample", con) ds = New DataSet() da.Fill(ds) CheckBox1.Text = ds.Tables(0).Rows(0)(0).ToString()
select distinct( columnname) from tableName
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)