-----------------------------------------------------------
New Message on MumbaiUserGroup
-----------------------------------------------------------
From: altafshaikh1
Message 9 in Discussion
New Message on MumbaiUserGroup
How bind dataGrid from datatable without database
Reply
Reply to Sender
Recommend
Message 6 in Discussion
From:
altafshaikh1
New Message on MumbaiUserGroup
How bind dataGrid from datatable without database
Reply
Reply to Sender
Recommend
Message 5 in Discussion
From:
altafshaikh1
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
View other groups in this category.
View other groups in this category.
-----------------------------------------------------------
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]