Click here to Skip to main content
15,922,630 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: public function accessing problem Pin
Pankaj Garg9-Jan-08 23:57
Pankaj Garg9-Jan-08 23:57 
GeneralRe: public function accessing problem Pin
N a v a n e e t h10-Jan-08 22:35
N a v a n e e t h10-Jan-08 22:35 
GeneralRe: public function accessing problem Pin
Pankaj Garg10-Jan-08 23:44
Pankaj Garg10-Jan-08 23:44 
GeneralRe: public function accessing problem Pin
Paul Conrad10-Jan-08 16:45
professionalPaul Conrad10-Jan-08 16:45 
QuestionRe: public function accessing problem Pin
Pankaj Garg10-Jan-08 17:51
Pankaj Garg10-Jan-08 17:51 
GeneralRe: public function accessing problem Pin
Paddy Boyd10-Jan-08 22:33
Paddy Boyd10-Jan-08 22:33 
GeneralRe: public function accessing problem Pin
Pankaj Garg10-Jan-08 23:42
Pankaj Garg10-Jan-08 23:42 
QuestionHow to delete a row in a ASP.NET dataGrid Pin
Imran Adam9-Jan-08 22:10
Imran Adam9-Jan-08 22:10 
Hello experts

i would like to know how to delete a row from a dataGrid (which is in edit mode), i am using paging and the built in edit, update, cancel methods.

I have been looking all over the posts most seem to be using databases and since i am using a XML file as my surce of data i am abit lost.

heres what i have in my delete event Handler..


private void dgStudents_DeleteCommand(object source,
System.Web.UI.WebControls.DataGridCommandEventArgs e)
{

int rowToDelete = e.Item.ItemIndex;

dsStudents.student.Rows[rowToDelete].Delete();

//refresh datagrid control to show changes
BindData();
}

the rowToDelete int will get the row to delete, but when i run this and click on delete, i get a runtime error of "There is no Row at position 0"

Help please??

Cheers

Cheers Smile | :)

AnswerRe: How to delete a row in a ASP.NET dataGrid Pin
N a v a n e e t h9-Jan-08 23:52
N a v a n e e t h9-Jan-08 23:52 
Generalwork with web services in a windows application Pin
caradri9-Jan-08 21:49
caradri9-Jan-08 21:49 
GeneralGridView with javascript calender Pin
AS@139-Jan-08 21:16
AS@139-Jan-08 21:16 
GeneralIGNORE - Duplicate of post below Pin
Declan Bright9-Jan-08 23:24
Declan Bright9-Jan-08 23:24 
QuestionHow to upload a asp.net project to server to make it online. Pin
coolsatty9-Jan-08 20:39
coolsatty9-Jan-08 20:39 
AnswerRe: How to upload a asp.net project to server to make it online. Pin
Declan Bright9-Jan-08 21:42
Declan Bright9-Jan-08 21:42 
GeneralRe: How to upload a asp.net project to server to make it online. Pin
coolsatty10-Jan-08 20:45
coolsatty10-Jan-08 20:45 
GeneralRe: How to upload a asp.net project to server to make it online. Pin
imsathy10-Jan-08 22:32
imsathy10-Jan-08 22:32 
Questionhow to handle a double click event in the grid view Pin
jagan1239-Jan-08 20:27
jagan1239-Jan-08 20:27 
AnswerRe: how to handle a double click event in the grid view Pin
Declan Bright9-Jan-08 21:44
Declan Bright9-Jan-08 21:44 
GeneralSystem.IO.IOException: The process cannot access the file because it is being used by another process. Pin
pekhaleyogesh9-Jan-08 20:27
pekhaleyogesh9-Jan-08 20:27 
QuestionGridView with javascript calender Pin
AS@139-Jan-08 20:21
AS@139-Jan-08 20:21 
GeneralRe: GridView with javascript calender Pin
Declan Bright9-Jan-08 23:15
Declan Bright9-Jan-08 23:15 
GeneralCreate PDF from ByteArray Pin
Kumaran21cen9-Jan-08 20:14
Kumaran21cen9-Jan-08 20:14 
Questionprinter queue in asp.net Pin
bharathy9-Jan-08 20:06
bharathy9-Jan-08 20:06 
Generalif we keep gridview in loop to check for the values is the speed of the application get it slow Pin
jagan1239-Jan-08 19:03
jagan1239-Jan-08 19:03 
GeneralRe: if we keep gridview in loop to check for the values is the speed of the application get it slow Pin
N a v a n e e t h9-Jan-08 19:13
N a v a n e e t h9-Jan-08 19:13 

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.