Link to home
Start Free TrialLog in
Avatar of kkondapalli
kkondapalli

asked on

Adding a New Row using a DataView

I have a Datagrid Control that is bound to a Dataview and now I want to add New rows to that Datagrid that update the base Datatable of the DataView.

How Can I do this?

Thanks,
Kalyan.
ASKER CERTIFIED SOLUTION
Avatar of iboutchkine
iboutchkine

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rameshsraj
rameshsraj

hi
                   dtTblsize.DefaultView.AllowNew = True
                    dtTblsize.DefaultView.AddNew()
                    dtTblsize.DefaultView(index).Item(columnindex) = <value>
                    ....
                    ....
                    dtTblsize.DefaultView.AllowNew = False

hope this is enough from u
instead of using a  dataview u can directly use the defaultview method
of datatable.

bye

Avatar of Bob Learned
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Answered by iboutchkine

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

TheLearnedOne
EE Cleanup Volunteer