Logo 
Search:

Asp.net Answers

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds
  Question Asked By: Mada Akhtar   on Oct 19 In Asp.net Category.

  
Question Answered By: Adelfrid Fischer   on Oct 19


public Sub BindGrid()
Dim MyCommand As SqlDataAdapter = New SqlDataAdapter ("Select *
" _
& "From Users", MyConnect)
Dim ds As DataSet = New DataSet()
MyCommand.Fill(ds)
MyDataGrid.DataSource=ds
MyDataGrid.DataBind()

Dim dr as datarow = ds.tables(0).Rows(0)
'at this point, dr contains the first row from the datatest
TextBox1.text = dr("ColumnName").ToString()

'And so forth


End Sub

Share: 

 

This Question has 6 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Datagrid Or get search suggestion and latest updates.


Tagged: