0

Hello, i have tried many solution for solving this problem. I want to passing field in database to list view with stored procedure. Any Body please help me

example
Table A

  • name
  • Sex

and stored procedure just (select * from [A])

how i can pass the field to list view

2
Contributors
3
Replies
4
Views
6 Years
Discussion Span
Last Post by praset
0

Let me see if I got this straight. You want to retrieve data from a stored procedure and display them using a list view.

Show us what you've done already and we'll help you get it done.

0

I have done

connection to sql

and

Public Function selectAllTblTDL() As SqlDataReader
            connectionDB = New controller.connection
            myCommand = New SqlCommand("selectAllTblTDL", connectionDB.openConnection(retMessage))
            result = myCommand.ExecuteReader

            Return result

        End Function
ALTER PROCEDURE [selectAllTblTDL]

AS SELECT * FROM [tbl_TDL]
	RETURN

Those are my function and store procedure, i have done it. And now i want to passing it to listview1

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.