Click here to Skip to main content
15,561,125 members
Home / Discussions / C#
   

C#

 
QuestionHow to work on Mobile Banking(SMS Banking)? Pin
CoderForEver10-May-10 3:40
CoderForEver10-May-10 3:40 
AnswerRe: How to work on Mobile Banking(SMS Banking)? Pin
Michel Godfroid10-May-10 4:59
Michel Godfroid10-May-10 4:59 
AnswerRe: How to work on Mobile Banking(SMS Banking)? Pin
CoderForEver10-May-10 5:18
CoderForEver10-May-10 5:18 
GeneralRe: How to work on Mobile Banking(SMS Banking)? Pin
Michel Godfroid10-May-10 6:10
Michel Godfroid10-May-10 6:10 
GeneralRe: How to work on Mobile Banking(SMS Banking)? Pin
CoderForEver10-May-10 8:24
CoderForEver10-May-10 8:24 
GeneralRe: How to work on Mobile Banking(SMS Banking)? Pin
Michel Godfroid10-May-10 12:15
Michel Godfroid10-May-10 12:15 
GeneralRe: How to work on Mobile Banking(SMS Banking)? Pin
CoderForEver20-May-10 8:38
CoderForEver20-May-10 8:38 
QuestionDataGridView and Deleting Rows Pin
Member 368144310-May-10 3:09
Member 368144310-May-10 3:09 
Hi,

I have a DataGridView control on a POS application I am writing as a project. I am having issues when trying to remove certain items from the control. Below is an example :-

1 Item 1 $5.00
-Extra 1
-Extra 2
1 Item 2 $10.00
1 Item 3 $2.00
-Extra 1

I want the user to be able to click on an item (or extra) in the datagridview and delete it. I can do this for single items and extras and it works perfectly (using removeat)but when I select an item, I want to check if there are any "extras" associated with the item and remove them aswell. Extras are always immediately below the item in question. My stumbling point seems to be when I remove 1 using RemoveAt, the index numbers change and I get exceptions.

This datagridview is not bound to any datasource and I am creating it on the fly.

Any help with the logic would be muchly appreciated.

Thanks,

Daniel.
AnswerRe: DataGridView and Deleting Rows Pin
Heinzzy10-May-10 3:25
Heinzzy10-May-10 3:25 
AnswerRe: DataGridView and Deleting Rows Pin
Luc Pattyn10-May-10 3:32
sitebuilderLuc Pattyn10-May-10 3:32 
Questionsort by Pin
tanzeel8510-May-10 3:02
tanzeel8510-May-10 3:02 
AnswerRe: sort by Pin
Henry Minute10-May-10 6:27
Henry Minute10-May-10 6:27 
GeneralRe: sort by Pin
tanzeel8513-May-10 2:11
tanzeel8513-May-10 2:11 
AnswerRe: sort by Pin
Peace ON10-May-10 21:12
Peace ON10-May-10 21:12 
Questionreturn type error "not all code paths return a value" Pin
wjbjnr10-May-10 1:42
wjbjnr10-May-10 1:42 
AnswerRe: return type error "not all code paths return a value" Pin
nagendrathecoder10-May-10 1:53
nagendrathecoder10-May-10 1:53 
AnswerRe: return type error "not all code paths return a value" [modified] Pin
Pete O'Hanlon10-May-10 1:57
mvaPete O'Hanlon10-May-10 1:57 
QuestionRe: return type error "not all code paths return a value" Pin
wjbjnr10-May-10 5:31
wjbjnr10-May-10 5:31 
AnswerRe: return type error "not all code paths return a value" Pin
Alan N10-May-10 6:38
Alan N10-May-10 6:38 
AnswerRe: return type error "not all code paths return a value" Pin
Som Shekhar10-May-10 2:02
Som Shekhar10-May-10 2:02 
QuestionRe: return type error "not all code paths return a value" Pin
wjbjnr10-May-10 6:25
wjbjnr10-May-10 6:25 
AnswerRe: return type error "not all code paths return a value" Pin
Som Shekhar10-May-10 6:35
Som Shekhar10-May-10 6:35 
GeneralRe: return type error "not all code paths return a value" Pin
wjbjnr10-May-10 7:15
wjbjnr10-May-10 7:15 
GeneralRe: return type error "not all code paths return a value" Pin
Som Shekhar10-May-10 7:48
Som Shekhar10-May-10 7:48 
QuestionRe: return type error "not all code paths return a value" Pin
wjbjnr10-May-10 8:59
wjbjnr10-May-10 8:59 

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.