المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Grid View control update delete with dataset disconnected environment.



C# Programming
02-06-2010, 11:40 PM
Dear Friend,

Scenario

I have one grid view showing user access model having field as 'User'(Textbox), 'Group'(Dropdown), 'View' (Checkbox), 'Edit'(Checkbox) column.

I have on Data Set where i stored the data fetch from database.

now i bind this dataset to Grid View Control
DataSet ds = getData();
GridView1.DataSource = ds.Tables[0];
GridView1.DataBind();

Note: Where getData() method fetch the data from database.

Problem
i change only two record from all ten records, now i want to update only that record in my database how could i do this...


Actually i know DataSet having HasChange() Method which use to know the changes in dataset but dont know how to use it for the above scenario..

Please help me

Thanks and regard's in advance

Sasmi