How to implement add delete modify functionality in datagridview?
I am connecting datbase to datagridview & displaying on page. and now i want to implemant add delete & modify functionality in grid itself.
can anybody help...
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Bechir BejaouiPosted Feb 12, 2009, 5:35 AM
you create a BindingSource object and configure it to your data source
then
yourcontrol.Databinding.add("thepropertyname like Text or DataSource ",
bindingsource_instance,
"The source like a given data table for example "
);
This provides a binding in two directions, if I well undersood the problem
Remember MePosted Feb 2, 2009, 4:55 AM
means if i delete any row from grid same should happen with database...
right now i am implementing this by writing sql query with sqlcommand & sqlconnection string. but what i want to do is implement add delete in grid itself..
thnx,
Bechir BejaouiPosted Jan 30, 2009, 3:53 PM