is it possible that if i click edit in gridview i get those values in the corresponding textboxes and when i click save it updates it in the gridview.
http://www.ezzylearning.com/tutorial.aspx?tid=1993146
http://msdn.microsoft.com/en-us/library/bb288031.aspx
Hi,
Refer these...
http://www.aspdotnet-suresh.com/2011/02/how-to-inserteditupdate-and-delete-data.html
http://www.codeproject.com/Articles/23471/Editable-GridView-in-ASP-NET-2-0
http://msdn.microsoft.com/en-us/library/ms972948.aspx
Google/ Bing You can find lot of code samples....
it allows you to edit in gridview only..
i want to edit using textboxes.
i think this is what you want,
- user selects the data from grid-view to edit.
- selected data loaded in Edit-forms (textboxes not the grid edit-template)
- after edit user presses the save button, all the data is saved in db
- and grid-view is binded with the updated data form db
if this is what you want then just following the steps above, it is quite simple
refer bellow url
http://www.aspdotnet-suresh.com/2011/03/how-to-show-modalpopup-to-edit-gridview.html
You understood it correctly...
Please help me with following those points.....
akkibansal
is it possible that if i click edit in gridview i get those values in the corresponding textboxes and when i click save it updates it in the gridview.
these below links will definatly help you
http://geekswithblogs.net/dotNETvinz/archive/2009/02/22/gridview-insert-edit-update-and-delete--the-ado.net-way.aspx if
using bounded field column
http://geekswithblogs.net/dotNETvinz/archive/2009/06/10/adding-rows-in-gridview-with-edit-update-and-delete-functionality.aspx if
using template field column
for (int i = 0; i < GridView1.Rows.Count; i++)
{
GridViewRow row = GridView1.Rows[i];
bool isChecked = ((CheckBox)row.FindControl("chk")).Checked;
if (isChecked)
{
string cvalues;
cvalues = cvalues + row.cells[1].text + "~";
if (cvalues != null)
{
Response.Redirect("covering_expn.aspx?name=" + cvalues);
}
I have 9 columns in a gridview and want to access the form_no(checked entries in the gridview) column in another page...
I want it to be assigned to a variable than passed to another page where i want it to access all other fields corresponding to checked form no.
沒有留言:
張貼留言