|
-
Apr 2nd, 2003, 04:31 AM
#1
Thread Starter
Lively Member
Adding a chkbox column to datagrid. (its a common q. but pls read.)
...this has been a very common question/topic on the net.
and after reading much of that still i am not getting how to do it.
here is my code in brief :
Dim con As New SqlConnection("Data Source=server1;Initial Catalog=Hotel Management;" & _
"Integrated Security=SSPI;")
Dim da As New SqlDataAdapter("roo_Room_Facility_Master_Get", con)
Dim ds As New DataSet("Table1")
da.Fill(ds, "Table1")
Dim dt As DataTable
dt = ds.Tables(0)
DataGrid1.DataSource = dt
the sql procedure returns a list of Facilities that can be provided in a Room thru a Select Query which itself doesnt contain any boolean field.
i want to add an extra checkbox column just for the sake of making multiple selections. so that i can store those selected ids seperated by commas.
please suggest some good article/code which clearly gives the desired solution.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|