Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42427

VS 2010 Populate Datagrid acording two textboxes

$
0
0
Hi.
I'm a little problem populating a datagridview with a filter I need.
I have one table, wich have many record, and two of them are: month and year

Now, what I need to do is the following:
- I create a windows form, and put them two textboxes, one for the year, ans another for the month in the format(01,02,03,...,12)
- After that, I create a datagridview in my form, but I need only show the record with this month and year, selected at the textboxes..

I try many variants of the Fillby but all of them gives me error or doesnt work.
Code:

Me.ReferenciaTableAdapter.Fill(Me.PRODUCAODataSet.Referencia)
Any solution?

Thanks

Viewing all articles
Browse latest Browse all 42427

Trending Articles



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