sir i want to ask you that how can i fetch or get sql data
into texboxes.where i want to show record in specific
texboxes related to student information.when i click on
button all data show on texboxes when i put id or name
plz inform me on my id

Answer Posted / amit dixit

1)Create an object of CurrencyManager.
2)Take the values fetch from the table to DataView.
3)Convert dataview to type of Currency Manager.
eg:EMP Table.
Dim da As New SqlDataAdapter("SELECT * FROM EMP", sqlCon)
Dim ds As DataSet
Dim dv As DataView
Dim objCm As CurrencyManager
======================
ds = New DataSet
da.Fill(ds, "EMP")
dv = New DataView(ds.Tables("EMP"))
objCm = CType(Me.BindingContext(dv), CurrencyManager)
======================
txtEmpid.DataBindings.Clear()
txtFnm.DataBindings.Clear()
txtDeptno.DataBindings.Clear()
txtEmpid.DataBindings.Add("Text", dv, "EmpId")
txtFnm.DataBindings.Add("Text", dv, "FirstName")
txtDeptno.DataBindings.Add("Text", dv, "DeptNo")

You can iterate through the next and previous by using
Position property of CurrencyManager.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is visual basic.net culture?

498


Is vb net a scripting language?

539


How many languages are supported by .net?

541


So you know which dll is used for microsoft .net run time?

509


Explain convert.tostrin?

624






Which dll is used for microsoft .net run time?

547


List the types of generations in garbage collector?

521


Explain the advantages of migrating to vb.net?

502


What is the diff between vb mdi form and .net mdi form?

537


Explain about rapid application development tool?

511


Name a feature which is common to all .net languages?

574


Explain the use of serialization and deserialization?

511


What is the differnce between managed code and unmanaged code?

531


what is common language specification?

511


Name some of the features of C# which are not present in VB.NET?

548