Create a Fill() function with parametres
-
For a tableAdapter , vb.net usually create automatically the fill() function .But i want to create a fill(parameter1) function where parameter1 is a value that filter data (by a filed ) filled into dataset.How can i do this ? Thank you !
You'd have to write your own method to do this. Although, you would normally call the method something like "GetSomethingBySomeValue", not Fill(value). Make the name of the method meaningful. The concept is called "self documenting code". The name of the method should tell you what it does. You can use the designer to help you do this by right-clicking the table you want in the dataset designer, and clicking Add Query...
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007