i create an application in .net platform in which i connect sql sever and i retrieve data from dataset through datagridview and i have to make a task that if i edit in gridview it will save the changes in datasource

Welcome niraj.thehycker,
Absolutely Yes. You have to write a code that update database. If you have a code and got a problem then post that code with code tags.
1.
Homework policy
2.
How to post source code?
Show your code. Do not forget to use code tags. Source code must be surrounded with code tags.
For example,

[CODE=C#] ... statements..

[/code][noparse]

... statements..
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.