Click here to Skip to main content
15,913,055 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionEnum [modified] Pin
shapper12-Jan-07 8:36
shapper12-Jan-07 8:36 
AnswerRe: Enum Pin
Not Active12-Jan-07 9:20
mentorNot Active12-Jan-07 9:20 
GeneralRe: Enum Pin
shapper12-Jan-07 13:57
shapper12-Jan-07 13:57 
GeneralRe: Enum Pin
Not Active12-Jan-07 14:09
mentorNot Active12-Jan-07 14:09 
QuestionGridview Question vb.net VS2005 Pin
Jonathan Snyder12-Jan-07 7:23
Jonathan Snyder12-Jan-07 7:23 
AnswerRe: Gridview Question vb.net VS2005 Pin
minhpc_bk12-Jan-07 21:20
minhpc_bk12-Jan-07 21:20 
GeneralRe: Gridview Question vb.net VS2005 Pin
Jonathan Snyder15-Jan-07 3:35
Jonathan Snyder15-Jan-07 3:35 
GeneralRe: Gridview Question vb.net VS2005 Pin
minhpc_bk15-Jan-07 4:26
minhpc_bk15-Jan-07 4:26 
There are a couple of things to talk about your sample code here:
+ To get reference to the row index to delete in the RowCommand event, you should use the e.CommandArgument, and e.RowIndex in the RowDeleting event.

+ Basically, calling DeleteRow method makes the two events RowDeleting and RowDeleted get raised, however this code does not make sense in this case as these two events automatically get raised by the control when the CommandName is Delete. So you don't need to call DeleteRow method, instead you should place your code to delete the selected row in the temp data source, then rebind it to control.

+ Like I said above, when the CommandName is Delete, you should use the specific event RowDeleting, put your code to delete the row there, and finally cancel the event.
GeneralRe: Gridview Question vb.net VS2005 Pin
Jonathan Snyder15-Jan-07 4:44
Jonathan Snyder15-Jan-07 4:44 
GeneralRe: Gridview Question vb.net VS2005 Pin
Jonathan Snyder15-Jan-07 5:17
Jonathan Snyder15-Jan-07 5:17 
GeneralUsing a Different Base Class Pin
Jonathan Snyder16-Jan-07 4:27
Jonathan Snyder16-Jan-07 4:27 
GeneralRe: Using a Different Base Class Pin
minhpc_bk16-Jan-07 13:41
minhpc_bk16-Jan-07 13:41 
GeneralRe: Using a Different Base Class Pin
Jonathan Snyder17-Jan-07 1:53
Jonathan Snyder17-Jan-07 1:53 
QuestionText box with sqlcommand in VB2005 Pin
VB_Student12-Jan-07 7:17
VB_Student12-Jan-07 7:17 
AnswerRe: Text box with sqlcommand in VB2005 Pin
minhpc_bk12-Jan-07 21:27
minhpc_bk12-Jan-07 21:27 
QuestionHigh memory consumption Pin
Jon Sagara12-Jan-07 5:00
Jon Sagara12-Jan-07 5:00 
AnswerRe: High memory consumption Pin
led mike12-Jan-07 5:26
led mike12-Jan-07 5:26 
GeneralRe: High memory consumption Pin
Jon Sagara12-Jan-07 5:35
Jon Sagara12-Jan-07 5:35 
GeneralLove for ATLAS! Pin
Bulky Fellow12-Jan-07 4:50
Bulky Fellow12-Jan-07 4:50 
GeneralRe: Love for ATLAS! Pin
ednrgc12-Jan-07 5:48
ednrgc12-Jan-07 5:48 
QuestionComparevalidator control problem Pin
mohd imran abdul aziz12-Jan-07 3:45
mohd imran abdul aziz12-Jan-07 3:45 
QuestionCached WebHandler Pin
AndersLind12-Jan-07 3:16
AndersLind12-Jan-07 3:16 
AnswerRe: Cached WebHandler Pin
Mark J. Miller12-Jan-07 8:44
Mark J. Miller12-Jan-07 8:44 
QuestionStrange problem when downloading a page from ASP.NET 1.1/CMS2002 Pin
Ponzano Paolo12-Jan-07 2:04
Ponzano Paolo12-Jan-07 2:04 
Questionone question Pin
Imran Khan Pathan12-Jan-07 1:47
Imran Khan Pathan12-Jan-07 1:47 

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.