Click here to Skip to main content
15,890,947 members
Home / Discussions / C#
   

C#

 
Questionstore procedure problem [modified] Pin
Raza Hussain23-Nov-07 4:50
Raza Hussain23-Nov-07 4:50 
AnswerRe: store procedure problem Pin
Rob Philpott23-Nov-07 5:27
Rob Philpott23-Nov-07 5:27 
QuestionSql Table Foriegn Key Problem in C# Pin
sajid.salim.khan23-Nov-07 4:47
sajid.salim.khan23-Nov-07 4:47 
AnswerRe: Sql Table Foriegn Key Problem in C# Pin
Raza Hussain23-Nov-07 5:00
Raza Hussain23-Nov-07 5:00 
Questionhow can I shutdown the pc ? Pin
The Glory23-Nov-07 4:38
The Glory23-Nov-07 4:38 
AnswerRe: how can I shutdown the pc ? Pin
Kristian Sixhøj23-Nov-07 4:49
Kristian Sixhøj23-Nov-07 4:49 
AnswerRe: how can I shutdown the pc ? Pin
Anthony Mushrow23-Nov-07 5:56
professionalAnthony Mushrow23-Nov-07 5:56 
QuestionDeleting row in Event Pin
baerten23-Nov-07 4:20
baerten23-Nov-07 4:20 
Hello everybody,

i added a column to my DataGridView with Buttons.
I created the EventHandler of CellEnter, ther'in i
like to delete this row.

The DataSource is an ArrayList of Classes which are displayed via his Members.
So if the user clicks the Delete-Button, the given record will be deleted in the database
and i refill the ArrayList with the new lines of the Database ( decreased by 1 row )
To refresh the DataGrid, i need to set the DataSource to null and re-set it to my ArrayList.
This works great in standard-functions, but not in this CellEnter-Event

I think i can't modify the DataSource of the grid because i'm into the handler of the grid.

Does anyone knows a solution?
In MFC i would make it via a PostMessage, that the code is executed after the EventHandler.


Big thanks Smile | :)
QuestionLoad an image from a file Pin
SeeBees23-Nov-07 3:50
SeeBees23-Nov-07 3:50 
AnswerRe: Load an image from a file Pin
Dave Kreskowiak23-Nov-07 5:33
mveDave Kreskowiak23-Nov-07 5:33 
GeneralRe: Load an image from a file Pin
SeeBees23-Nov-07 17:23
SeeBees23-Nov-07 17:23 
GeneralRe: Load an image from a file Pin
Dave Kreskowiak24-Nov-07 4:14
mveDave Kreskowiak24-Nov-07 4:14 
AnswerRe: Load an image from a file Pin
Anthony Mushrow23-Nov-07 7:34
professionalAnthony Mushrow23-Nov-07 7:34 
GeneralRe: Load an image from a file Pin
SeeBees23-Nov-07 17:32
SeeBees23-Nov-07 17:32 
GeneralRe: Load an image from a file Pin
Anthony Mushrow24-Nov-07 1:51
professionalAnthony Mushrow24-Nov-07 1:51 
QuestionError Pin
minniemooo23-Nov-07 3:15
minniemooo23-Nov-07 3:15 
AnswerRe: Error Pin
Andrei Ungureanu23-Nov-07 3:18
Andrei Ungureanu23-Nov-07 3:18 
AnswerRe: Error Pin
Anthony Mushrow23-Nov-07 3:19
professionalAnthony Mushrow23-Nov-07 3:19 
AnswerRe: Error Pin
Vasudevan Deepak Kumar23-Nov-07 3:38
Vasudevan Deepak Kumar23-Nov-07 3:38 
AnswerRe: Error Pin
kkadir23-Nov-07 4:26
kkadir23-Nov-07 4:26 
QuestionDisable PDF Print button from C# Pin
cosmoteco23-Nov-07 3:14
cosmoteco23-Nov-07 3:14 
AnswerRe: Disable PDF Print button from C# Pin
Vasudevan Deepak Kumar23-Nov-07 3:42
Vasudevan Deepak Kumar23-Nov-07 3:42 
GeneralRe: Disable PDF Print button from C# Pin
cosmoteco23-Nov-07 4:33
cosmoteco23-Nov-07 4:33 
GeneralRe: Disable PDF Print button from C# Pin
Dave Kreskowiak23-Nov-07 5:31
mveDave Kreskowiak23-Nov-07 5:31 
GeneralRe: Disable PDF Print button from C# Pin
cosmoteco23-Nov-07 5:43
cosmoteco23-Nov-07 5:43 

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.