How to use a DataAdapter with stored procedure and parameter

前端 未结 9 778
名媛妹妹
名媛妹妹 2020-11-30 01:05

I want to fill a DataGridView control using DataAdapter. But I don\'t know how to do it since I\'m using a stored procedure with parameter. Can someone cite an example pleas

9条回答
  •  悲&欢浪女
    2020-11-30 02:00

    Maybe your code is missing this line from the Microsoft example:

    MyDataAdapter.SelectCommand.CommandType = CommandType.StoredProcedure
    

提交回复
热议问题