How To Print Data from form in Desktop Application in VB.Net
Hi all, :bigyello:
i have created one Desktop Application in Vb.net i have one form which containn the datagrid and othere controls (TextBox), i have one buton on same form when i click on this button the Data on this form should get display how can i do this,any help will appriciacted
thanx in advance.
Regards,
Re: How To Print Data from form in Desktop Application in VB.Net
Search MSDN for DataAdapter.fill:
VB Code:
Dim SelectQuery As String = "SELECT * FROM Customers"
Dim adapter As New SqlClient.SqlDataAdapter(SelectQuery, YOURCONNECTIONSTRING)
Dim ds As New DataSet("Northwind")
adapter.Fill(DsNorthwind1,"Customers")
DataGrid1.DataSource = ds