Hi
Iam working with VB.NET
Is it possible to Add rows to datagrid with out assigning a datasource
to it, ie

For Example
Dim dsEmployee as Dataset
dsEmployee=select * from employee
TextBox1.Text = (dsEmployee.Tables(0).Rows(0).Item("employee_id"))
now textbox1.text will contain employee_id


In this way without this statement
DataGrid1.DataSource = dsEmployee.Tables(0)


can we add contents of a row to a datagrid without assigning any
datatable to it


I tried doing it as
Datagrid1.datasource =Nothing
DataGrid1.Item(0,0) = dsEmployee.Tables(0).Rows(0).Item("employee_id")


//Item(rowIndex,columnIndex) method "gets or sets the value of the cell

at specified row and column"


But it Didn't work I Got error as


An unhandled exception of type 'System.InvalidOperationException'
occurred in system.windows.forms.dll
Additional information: Data cannot be read from a DataGrid which is
not bound to a DataTable.


Iam not sure that datagrid will work without assigning a datasource


Is it possible
pls let me know
Thanks
Shreelu