I Bind the DataTable ‘dt’ to GridView like this.
GridView1.DataSource = dt;
GridView1.DataBind();
DataBind is successful.
In GridView Row DataBound I wrote like this:
DataRowView rowView = (DataRowView)e.Row.DataItem;
So my question is ‘Is this DataRowView is an object of DataTable(dt) row’ ?
because if it is than I can edit rowView to insert the data in DataTable(dt), right ?
datarowview is not an object of datatable but an object of dataview
datarowview is a view of datarow with status Default, Original, Current and Proposed.
so dataview wrap datatable and dataview wrap datarow
you can access datarow through Row property of datarowview