Gridview aditing
-
I have a huge problem,i am trying to edit values from gridview and am not using adit command of gridview i want to use stand alone button and inside my gridview i have a checkbox this checkbox when checked on a certain line only that line on a gridview must change to editable mode when i click my stand alone edit button. i.e more like when you have mail on yahoo or anymail if you want to delete a message you check the checkbox and then click delete button so am looking something like that
-
I have a huge problem,i am trying to edit values from gridview and am not using adit command of gridview i want to use stand alone button and inside my gridview i have a checkbox this checkbox when checked on a certain line only that line on a gridview must change to editable mode when i click my stand alone edit button. i.e more like when you have mail on yahoo or anymail if you want to delete a message you check the checkbox and then click delete button so am looking something like that
You could for instance set the various columns, except your checkbox column, to readonly. Then when you click your editbutton, extract ticked DataRow and edit the data in a custom control. Or set all DataRows.ReadOnly property to 'true' except the ticked one. You could do this in the DataGridView.CellValueChanged event handler. -Larantz-
for those about to code, we salute you
http://www.itverket.noPlease refer to the Forum Guidelines for appropriate posting.