Click here to Skip to main content
15,907,687 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: email Pin
mylogics11-Jan-10 19:35
professionalmylogics11-Jan-10 19:35 
GeneralRe: email Pin
Vasudevan Deepak Kumar12-Jan-10 4:09
Vasudevan Deepak Kumar12-Jan-10 4:09 
QuestionDelete record in Gridview Pin
Nopo10-Jan-10 21:46
Nopo10-Jan-10 21:46 
AnswerRe: Delete record in Gridview Pin
Dinesh Mani10-Jan-10 22:14
Dinesh Mani10-Jan-10 22:14 
GeneralRe: Delete record in Gridview Pin
Nopo10-Jan-10 22:36
Nopo10-Jan-10 22:36 
GeneralRe: Delete record in Gridview Pin
Dinesh Mani10-Jan-10 22:50
Dinesh Mani10-Jan-10 22:50 
GeneralRe: Delete record in Gridview Pin
Nopo10-Jan-10 22:59
Nopo10-Jan-10 22:59 
GeneralRe: Delete record in Gridview Pin
Dinesh Mani10-Jan-10 23:05
Dinesh Mani10-Jan-10 23:05 
I assume GridViewDeleteEventArgs e has a row index just like the Update event arg. So, you can use it to get the gridview row and use it to get the datatable row just like what you have done for edit.

I've just got these out of the original code that you posted and modified it slightly -
GridViewRow row = dgInfoProfile.Rows[e.RowIndex];
dt.Rows[row.DataItemIndex].Remove();


Try on these lines and I'm sure you must be able to get it to work!
GeneralRe: Delete record in Gridview Pin
Nopo10-Jan-10 23:23
Nopo10-Jan-10 23:23 
GeneralRe: Delete record in Gridview Pin
Dinesh Mani10-Jan-10 23:32
Dinesh Mani10-Jan-10 23:32 
AnswerRe: Delete record in Gridview Pin
Nopo11-Jan-10 2:51
Nopo11-Jan-10 2:51 
GeneralRe: Delete record in Gridview Pin
Dinesh Mani11-Jan-10 18:35
Dinesh Mani11-Jan-10 18:35 
QuestionProblem with Remember password Pin
Sudhanshu Mani Tripathi10-Jan-10 19:33
Sudhanshu Mani Tripathi10-Jan-10 19:33 
GeneralRe: Problem with Remember password Pin
lxdx10-Jan-10 19:48
lxdx10-Jan-10 19:48 
QuestionSelecting picture by open file dialoguebox and showing it in imagebox in ASP.NET Pin
Abdullah Al-Muzahid10-Jan-10 19:31
professionalAbdullah Al-Muzahid10-Jan-10 19:31 
AnswerRe: Selecting picture by open file dialoguebox and showing it in imagebox in ASP.NET Pin
lxdx10-Jan-10 19:50
lxdx10-Jan-10 19:50 
GeneralRe: Selecting picture by open file dialoguebox and showing it in imagebox in ASP.NET Pin
Abdullah Al-Muzahid10-Jan-10 20:03
professionalAbdullah Al-Muzahid10-Jan-10 20:03 
Questionmagic numbers when debug in a webform Pin
meeram39510-Jan-10 19:11
meeram39510-Jan-10 19:11 
GeneralRe: magic numbers when debug in a webform Pin
J a a n s11-Jan-10 0:12
professionalJ a a n s11-Jan-10 0:12 
GeneralRe: magic numbers when debug in a webform Pin
meeram39511-Jan-10 0:49
meeram39511-Jan-10 0:49 
QuestionOpening URL in new browser from ASP.net Pin
Hema Bairavan10-Jan-10 19:03
Hema Bairavan10-Jan-10 19:03 
AnswerRe: Opening URL in new browser from ASP.net Pin
meeram39510-Jan-10 19:20
meeram39510-Jan-10 19:20 
Questionswap rows in repeater Pin
m@dhu10-Jan-10 18:56
m@dhu10-Jan-10 18:56 
QuestionASP.NET problem Pin
theOzLizard10-Jan-10 14:42
theOzLizard10-Jan-10 14:42 
AnswerRe: ASP.NET problem Pin
Dinesh Mani10-Jan-10 18:16
Dinesh Mani10-Jan-10 18:16 

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.