L
LearnMore.John
Is it possible to update all the rows in a single postback using
Gridview Control,
regards
John
Gridview Control,
regards
John
John
I am assuming you already have template columns set up to enter the
data into.
For this example I am using a TextBox inside a template column called
strDateOfClean.
int intCount = GridMain.Rows.Count;
int intIndex = 0;
while (intIndex < intCount)
{
TextBox strDateOfClean =
GridMain.Rows[intIndex].FindControl("strDateOfClean") as TextBox;
//Then you can do what you need to here to save the
//strDateOfClean, such as updating an SQL table. e.g. Adding it to an
SQL string
//and firing a command.
//string strsql = "Update tblTest set strTest = '" +
strDateOfClean.Text + "'";
intIndex += 1;
}
Cheers
Jared
Is it possible to update all the rows in a single postback using
Gridview Control,
regards
John
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.