Good day,
I have some question here, and this is the scenario
I have a datagridview and a textboxes in my form., when I selected a row and I edit it in the textbox, there will be an action flag that this row is edited.
So if I transfer to another row, I want to hold the edited values in an array. So when I save all the edited rows all the values in my array will be save and , it will reflect to my datagridview.
My question is how to hold the values I entered in my textboxes,?
Sorry for bad english
Btw, the datagridview is bounded to a binding source., and i set my datagridview property, ALlow to edit to false.,
Thanks
by the way d mo kailangan mg english.. hehe dami nakakaintindi sayo d2..sa totoo lng nasagot mo na din sarili mong prob:
I want to hold the edited values in an array.
and why are you disabling the edit function.. pwede naman paisaisa yung pgeedit ng user db? mgkaron ka din ng save action para ang gagawin ng user is edit lng paisaisa...
Also bind your textboxes with the binding source. That will propably solve your problem.
naisip ku na rin po ito,
pero pede ku po ba i-cancel ung mga na edit ku and ibalik sa original data kapag kinancel ku?
Assuming the data is stored in a data table, you could call the RejectChanges Method to abort all changes. Likewise, Acceptchanges accepts all changes.
bakit mo iistore yung mga rows sa array hindi ba pwede sa datatable?
One more thing, since your data source is an array object, i suppose that you won't be able to add/remove new entries. From what i know, the dimensions of an array object is "fixed," and the only way for you to add/remove fields is to create a new instance of the array and copy the new version of your data.