DataGrid
-
I'm learning ASP .NET 2.0. I have a question about the DataGrid (gridview) component. I am working on a simple project where I would like to have a textbox where a user can update hours. Is it possible for every row to have a text box there so anyone can change several hours for each row and save them all at once? That way, no one would have to click edit, and then update for each row. This is the only field editable on this page. Thanks for you input.
-
I'm learning ASP .NET 2.0. I have a question about the DataGrid (gridview) component. I am working on a simple project where I would like to have a textbox where a user can update hours. Is it possible for every row to have a text box there so anyone can change several hours for each row and save them all at once? That way, no one would have to click edit, and then update for each row. This is the only field editable on this page. Thanks for you input.
Also, I would like to have concurrency to be able to still be used.
-
I'm learning ASP .NET 2.0. I have a question about the DataGrid (gridview) component. I am working on a simple project where I would like to have a textbox where a user can update hours. Is it possible for every row to have a text box there so anyone can change several hours for each row and save them all at once? That way, no one would have to click edit, and then update for each row. This is the only field editable on this page. Thanks for you input.
yes u can do it by custom code. dont use the update option of gridview. place a button in the page and in button clik u can write sql query to insert values in each row to dbase by looping thru the rows in the gridview.. u can ,make use of SqlTransaction to insert all the records in a transaction. foreach(GridviewRow gv in Gridview1.Rows) { // write code for inserting values into database from each row }
CST
-
yes u can do it by custom code. dont use the update option of gridview. place a button in the page and in button clik u can write sql query to insert values in each row to dbase by looping thru the rows in the gridview.. u can ,make use of SqlTransaction to insert all the records in a transaction. foreach(GridviewRow gv in Gridview1.Rows) { // write code for inserting values into database from each row }
CST
Ok, from there, how would you have that one field editable via a non-read only text box?
-
Ok, from there, how would you have that one field editable via a non-read only text box?
-
Yes sorry , I want the user to be able to make a bulk edit as it were. The gridview way that I know, you have to edit one row at a time by clicking the edit button. Is there a way to make all of the textboxes editable or will your suggestion work?