Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

How to pass a parameter to datagridview in a cell

$
0
0

Hello ,, i have a gridview with dataset 

this a statment of the dataset  "SELECT Name, Price, Quantity FROM PrimaryTable WHERE (Number = @number) AND (Size = @size)

i want to pass @number and @size to the database from a cell of datagridview 

Mean , take @number for a cell of the column 'Number' and @size for a cell of the column 'Size' 

and when press enter key passes its to the dataset and return the selected rows 

How do it ? Please replay 


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>