Hiiii
PLZ i want all code to create sqldataadapter Programmatically
with its sqlconnection,sqlcommand(text command) and dataset
and bind it with datagrid i need all above to be at web form
Thx
Printable View
Hiiii
PLZ i want all code to create sqldataadapter Programmatically
with its sqlconnection,sqlcommand(text command) and dataset
and bind it with datagrid i need all above to be at web form
Thx
Hope I didnt forget anything. =)
/NisseCode:Dim cn As New SQLConnection("connectionstrin")
Dim da As New SQLDataAdapter("Selectcommand", cn)
Dim ds As New Dataset
da.Fill(ds)
DataGrid1.DataSource = ds
DataGrid1.DataMember = "Table name"