-----------------------------------------------------------

New Message on MumbaiUserGroup

-----------------------------------------------------------
From: altafshaikh1
Message 5 in Discussion

Hi Friends,   You can insert values from textbox to the datagrid without  help 
of database, Plz try the following Code.  
Public Class Form1 
Inherits System.Windows.Forms.Form 
Dim dt As New DataTable 
Dim drow As DataRow 
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As 
System.EventArgs) Handles MyBase.Load 
dt.Columns.Add(New DataColumn("Name")) 
dt.Columns.Add(New DataColumn("Id")) 
End Sub 
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As 
System.EventArgs) Handles Button1.Click 
drow = dt.NewRow() 
dt.NewRow() 
drow(0) = TextBox1.Text 
drow(1) = TextBox2.Text 
dt.Rows.Add(drow) 
DataGrid1.DataSource = dt 
End Sub 
End Class

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/MumbaiUserGroup/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member 
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you 
received this message by mistake, please click the "Remove" link below. On the 
pre-addressed e-mail message that opens, simply click "Send". Your e-mail 
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to