Click here to Skip to main content
15,896,606 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: set the cursor at the end of textbox Pin
Abhijit Jana16-Jan-09 19:31
professionalAbhijit Jana16-Jan-09 19:31 
Questionhelp me Pin
ArunRevathy16-Jan-09 17:56
ArunRevathy16-Jan-09 17:56 
AnswerRe: help me Pin
N a v a n e e t h16-Jan-09 18:29
N a v a n e e t h16-Jan-09 18:29 
AnswerRe: help me Pin
Abhijit Jana16-Jan-09 19:09
professionalAbhijit Jana16-Jan-09 19:09 
AnswerRe: help me Pin
Christian Graus17-Jan-09 0:25
protectorChristian Graus17-Jan-09 0:25 
QuestionUnable to get the response code from authorize .net Pin
vnr16-Jan-09 17:35
vnr16-Jan-09 17:35 
AnswerRe: Unable to get the response code from authorize .net Pin
N a v a n e e t h16-Jan-09 18:31
N a v a n e e t h16-Jan-09 18:31 
QuestionEditing rows in a GridView Pin
Cyberpulse16-Jan-09 15:37
Cyberpulse16-Jan-09 15:37 
I have a gridview that is being dynamically populated with data based on textbox values at runtime. The code inside the button click is as follows:-

1 conn.Open();
2 string strSQL = "SELECT [UserId], [IsLockedOut] FROM [ac_Users] WHERE ([UserId] =" + Int32.Parse(tb_UserID.Text) + ")";
3 SqlCommand cmd = new SqlCommand(strSQL, conn);
4 DataTable dt = new DataTable();
5 SqlDataAdapter sqlAdapter = new SqlDataAdapter(null, conn);
6 sqlAdapter.SelectCommand = cmd;
7 sqlAdapter.Fill(dt);
8 conn.Close();
9 try
10 {
11 grd_Users.DataSource = dt.DefaultView;
12 grd_Users.DataBind();
13 pnl_Users.Visible = true;
14 }
15 catch (Exception ex)
16 {
17 TestUtils2.TestLogger.WriteErrorEntry(ex.Message, AuctivaUtils2.eAuctivaLogFile.General);
18 }
19 finally
20 {
21 conn.Close();
22 }

The gridview is correctly populated with the data I need, however I want each row in the data that is returned to be editable. I have the AutoGenerateEditButton property set to true and have also set the DataKeys property of the the gridview with the primary key of the table being returned.
However when I click the 'edit" link that appears in each row in the gridview, nothing happens. How do I make that button make the corresponding row editable ?
AnswerRe: Editing rows in a GridView Pin
Jon Rista16-Jan-09 15:48
Jon Rista16-Jan-09 15:48 
GeneralRe: Editing rows in a GridView Pin
Cyberpulse17-Jan-09 21:17
Cyberpulse17-Jan-09 21:17 
QuestionCustom Server Control Color Property Problem Pin
vickyshah16-Jan-09 9:30
vickyshah16-Jan-09 9:30 
AnswerRe: Custom Server Control Color Property Problem Pin
N a v a n e e t h16-Jan-09 15:27
N a v a n e e t h16-Jan-09 15:27 
Question[newbie] Pin
jon-8016-Jan-09 9:04
professionaljon-8016-Jan-09 9:04 
AnswerRe: [newbie] Pin
Christian Graus16-Jan-09 9:12
protectorChristian Graus16-Jan-09 9:12 
GeneralRe: [newbie] Pin
jon-8016-Jan-09 9:55
professionaljon-8016-Jan-09 9:55 
GeneralRe: [newbie] Pin
Christian Graus16-Jan-09 10:02
protectorChristian Graus16-Jan-09 10:02 
GeneralRe: [newbie] Pin
jon-8016-Jan-09 10:25
professionaljon-8016-Jan-09 10:25 
Questionimage problem Pin
netJP12L16-Jan-09 8:44
netJP12L16-Jan-09 8:44 
AnswerRe: image problem Pin
Guffa16-Jan-09 9:03
Guffa16-Jan-09 9:03 
Questiongetting row into textbox and update,delete in gridview Pin
mihirkul16-Jan-09 6:54
mihirkul16-Jan-09 6:54 
AnswerCP IGNORE -- THIRD TIME SAME QUESTION Pin
leckey16-Jan-09 8:27
leckey16-Jan-09 8:27 
Question[newbie] Controls have to be aligned Pin
jon-8016-Jan-09 4:56
professionaljon-8016-Jan-09 4:56 
AnswerRe: [newbie] Controls have to be aligned Pin
TylerBrinks16-Jan-09 5:01
TylerBrinks16-Jan-09 5:01 
AnswerRe: [newbie] Controls have to be aligned Pin
jon-8016-Jan-09 9:56
professionaljon-8016-Jan-09 9:56 
AnswerRe: [newbie] Controls have to be aligned Pin
Member 400159616-Jan-09 22:34
Member 400159616-Jan-09 22:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.