.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> VB.Net >> Post New QuestionBookmark and Share Subscribe to Forum

grid view problem plz help me out

Posted By: siri.k     Posted Date: July 19, 2011    Points:5   Category :VB.Net
hai can any one provide me basic grid view porgrams for beginners in VB dot netplz in details

........ actually i had created samp table in database .... and in form i have put insert button so after clicking insert button i want to display all the items which are availbale in samp table into the grid view plz tell me the coding for that

thanks in advance
k siri

Responses
Author: Narayanan             
Posted Date: July 19, 2011     Points: 20   

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim connectionString As String = "Data Source=.;Initial Catalog=pubs;Integrated Security=True"
Dim sql As String = "SELECT * FROM tbl_Login"
Dim connection As New SqlConnection(connectionString)
Dim dataadapter As New SqlDataAdapter(sql, connection)
Dim ds As New DataSet()
connection.Open()
dataadapter.Fill(ds, "Authors_table")
connection.Close()
DataGridView1.DataSource = ds
DataGridView1.DataMember = "Authors_table"
End Sub

Regards, Lakshmi Naraayanan.S
http://dotnettechrocks.blogspot.in/
Author: Dhiraj Ranka             
Posted Date: July 20, 2011     Points: 20   

Hi,

you can follow these links

http://www.dotnetperls.com/datagridview-vbnet

Hope this helps.

Thanks & Regards,
Dhiraj Ranka
http://www.twitter.com/dhirajranka | http://www.dhirajranka.com
Author: Ravi Ranjan Kumar             
Posted Date: July 20, 2011     Points: 20   

hey! you will get plenty of articles for learning about everything of Gridview while googling.
here I am going to refer you some link. have a look
http://www.vbnettutorial.net/?Id=125&Desc=VB.Net-DataGridView
http://www.dotnetspider.com/resources/20095-Editing-Deleting-Gridview-VB-net.aspx
http://www.codeproject.com/KB/dotnet/AccessingControlsInsideGr.aspx

Thanks & Regards
Ravi Ranjan Kumar
http://raviranjankr.wordpress.com
Author: Sasi Prabhu             
Posted Date: July 29, 2011     Points: 20   
Author: Gowthammanju             
Posted Date: July 29, 2011     Points: 20   

check these link as

http://www.dotnetperls.com/datagridview-vbnet


http://www.vbnettutorial.net/?Id=125&Desc=VB.Net-DataGridView

Thanks & Regards,
GowthamManju
Chennai



Mark if the answer is true


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend