pad said:Hi
How to display the data manually (not using binding methods and just like flexgrid style data display) in data grid. i need the simple coding for that...
Tx in advance...
Dim dt As New DataTable()
Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
dt.Columns.Add(New DataColumn("Name"))
End Sub
'to add data to your datagrid
Private Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim r As DataRow = dt.NewRow
r(0) = TextBox1.Text
dt.Rows.Add(r)
DataGrid1.DataSource = dt
End Sub