-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: Akshit56491
Message 2 in Discussion

hi,    check this example   Dim myconnection As SqlClient.SqlConnection Dim myda As 
SqlClient.SqlDataAdapter Dim ds As DataSet  myconnection = New 
SqlClient.SqlConnection("Server=localhost;uid=sa;password=;database=northwind;") myda 
= New SqlClient.SqlDataAdapter("Select * from Categories", myconnection) ds = New 
DataSet() myda.Fill(ds, "AllTables")  Dim i As Integer  'To navigate through the 
records For i = 0 To ds.Tables(0).Columns.Count - 1         Dim objbc As New 
BoundColumn()  objbc.DataField = ds.Tables(0).Columns(i).ColumnName    
objbc.HeaderText = ds.Tables(0).Columns(i).ColumnName           If objbc.DataField = 
ds.Tables(0).Columns("Picture").ColumnName Then            objbc.Visible = False   End 
If          DataGrid1.Columns.Add(objbc)    DataGrid1.DataSource = ds.Tables(0)     
DataGrid1.DataBind()     Next Regards,Akshit

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/BDotNet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to