Click here to Skip to main content
15,917,793 members
Home / Discussions / C#
   

C#

 
GeneralRe: Com DLL file reference access ... Pin
Shahin779-Jan-08 8:19
Shahin779-Jan-08 8:19 
GeneralRe: Com DLL file reference access ... [modified] Pin
Dave Kreskowiak9-Jan-08 9:14
mveDave Kreskowiak9-Jan-08 9:14 
QuestionHow Do I Prohibit Users From Sorting In A DataGridView Pin
Joe Marchionna9-Jan-08 5:24
Joe Marchionna9-Jan-08 5:24 
GeneralRe: How Do I Prohibit Users From Sorting In A DataGridView Pin
led mike9-Jan-08 5:33
led mike9-Jan-08 5:33 
GeneralRe: How Do I Prohibit Users From Sorting In A DataGridView Pin
Joe Marchionna9-Jan-08 5:40
Joe Marchionna9-Jan-08 5:40 
GeneralRe: How Do I Prohibit Users From Sorting In A DataGridView Pin
led mike9-Jan-08 6:03
led mike9-Jan-08 6:03 
GeneralRe: How Do I Prohibit Users From Sorting In A DataGridView Pin
Joe Marchionna9-Jan-08 8:42
Joe Marchionna9-Jan-08 8:42 
QuestionHow to delete a row from a dataGrid Pin
Imran Adam9-Jan-08 5:22
Imran Adam9-Jan-08 5:22 
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 Smile | :)
GeneralSerializing ints, enums in hexidecimal Pin
Skippums9-Jan-08 4:50
Skippums9-Jan-08 4:50 
GeneralRe: Serializing ints, enums in hexidecimal Pin
Le centriste9-Jan-08 5:21
Le centriste9-Jan-08 5:21 
GeneralRe: Serializing ints, enums in hexidecimal Pin
Skippums9-Jan-08 8:10
Skippums9-Jan-08 8:10 
GeneralRe: Serializing ints, enums in hexidecimal Pin
Le centriste9-Jan-08 8:24
Le centriste9-Jan-08 8:24 
GeneralRe: Serializing ints, enums in hexidecimal Pin
Skippums9-Jan-08 9:27
Skippums9-Jan-08 9:27 
GeneralRe: Serializing ints, enums in hexidecimal Pin
Le centriste9-Jan-08 9:37
Le centriste9-Jan-08 9:37 
GeneralRe: Serializing ints, enums in hexidecimal Pin
Skippums9-Jan-08 10:17
Skippums9-Jan-08 10:17 
GeneralTo add to my other answer... Pin
Le centriste9-Jan-08 9:40
Le centriste9-Jan-08 9:40 
QuestionHow to invoke SQL Function through SqlCommand class Pin
El'Cachubrey9-Jan-08 4:06
El'Cachubrey9-Jan-08 4:06 
AnswerRe: How to invoke SQL Function through SqlCommand class Pin
led mike9-Jan-08 4:31
led mike9-Jan-08 4:31 
AnswerRe: How to invoke SQL Function through SqlCommand class Pin
andyharman9-Jan-08 4:44
professionalandyharman9-Jan-08 4:44 
QuestionHow to catch the event of thowing an exception in Visual Studio Pin
manustone9-Jan-08 3:51
manustone9-Jan-08 3:51 
Generalset child form height Pin
arkiboys9-Jan-08 2:29
arkiboys9-Jan-08 2:29 
GeneralRe: set child form height Pin
Stu Richardson9-Jan-08 2:40
Stu Richardson9-Jan-08 2:40 
GeneralRe: set child form height Pin
arkiboys9-Jan-08 2:49
arkiboys9-Jan-08 2:49 
GeneralRe: set child form height Pin
DaveyM699-Jan-08 3:08
professionalDaveyM699-Jan-08 3:08 
GeneralRe: set child form height Pin
arkiboys9-Jan-08 3:13
arkiboys9-Jan-08 3: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.