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.
Any solution?
Thanks
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)
Thanks