Click here to Skip to main content
15,887,596 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: How to freeze the datagridview content on verticall scroll? Pin
Takhir28-Apr-09 3:51
Takhir28-Apr-09 3:51 
QuestionRe: How to freeze the datagridview content on verticall scroll? Pin
Eddy Vluggen28-Apr-09 3:56
professionalEddy Vluggen28-Apr-09 3:56 
AnswerRe: How to freeze the datagridview content on verticall scroll? Pin
Takhir28-Apr-09 4:31
Takhir28-Apr-09 4:31 
AnswerRe: How to freeze the datagridview content on verticall scroll? Pin
Eddy Vluggen28-Apr-09 22:28
professionalEddy Vluggen28-Apr-09 22:28 
GeneralRe: How to freeze the datagridview content on verticall scroll? Pin
Takhir28-Apr-09 22:55
Takhir28-Apr-09 22:55 
GeneralRe: How to freeze the datagridview content on verticall scroll? Pin
rzubi7-Jun-09 20:26
rzubi7-Jun-09 20:26 
GeneralRe: How to freeze the datagridview content on verticall scroll? Pin
Takhir8-Jun-09 4:51
Takhir8-Jun-09 4:51 
QuestionStop receiving updates from BindingSource control inDataGridView Pin
acroitoriu28-Apr-09 2:32
acroitoriu28-Apr-09 2:32 
Hi all,

In the current project I working on, on one form I'm using a datagridview control to display some rows from a strongly-typed dataset DataTable. In the application, there is the possibility that some rows displayed in the datagridview are deleted in background. under normal conditions, the rows should disappear from the datagridview (which happens), but I need to keep them in datagridview for display until the user decides to close the form.
Additionaly, for the datagridview I perform some custom painting of the row (in CellFormatting and RowPostPaint events)...

in order to "disconnect" my gridview from the bindingsource and keep my deleted rows for displayed I tried to use the following code:

myBindingSource.RaiseListChangedEvents = false;
myBindingSource.SuspendBinding();

But, this doesn't help: I keep getting an exception dialog message with the message:

Exception: System.Data.RowNotInTableException: This row has been removed from a table and does not have any data. BeginEdit() will allow creation of new data in this row.

How can I achieve what I need to do? Is it possible to keep the data in the gridview although the rows were deleted?

Thank you in advance!

Andrei
NewsMicrosoft Tech-ed Event in India Pin
manish deora28-Apr-09 0:48
manish deora28-Apr-09 0:48 
GeneralRe: Microsoft Tech-ed Event in India Pin
Michael Bookatz28-Apr-09 1:08
Michael Bookatz28-Apr-09 1:08 
Questionauthenticate windows form using a cookie ? Pin
Harkamal Singh27-Apr-09 22:59
Harkamal Singh27-Apr-09 22:59 
AnswerRe: authenticate windows form using a cookie ? Pin
Henry Minute28-Apr-09 2:17
Henry Minute28-Apr-09 2:17 
GeneralRe: authenticate windows form using a cookie ? Pin
Harkamal Singh28-Apr-09 2:23
Harkamal Singh28-Apr-09 2:23 
GeneralRe: authenticate windows form using a cookie ? Pin
Henry Minute28-Apr-09 2:34
Henry Minute28-Apr-09 2:34 
GeneralRe: authenticate windows form using a cookie ? Pin
Harkamal Singh28-Apr-09 2:37
Harkamal Singh28-Apr-09 2:37 
GeneralRe: authenticate windows form using a cookie ? Pin
Henry Minute28-Apr-09 2:41
Henry Minute28-Apr-09 2:41 
GeneralRe: authenticate windows form using a cookie ? Pin
Mycroft Holmes28-Apr-09 22:40
professionalMycroft Holmes28-Apr-09 22:40 
AnswerRe: authenticate windows form using a cookie ? Pin
Eddy Vluggen28-Apr-09 22:49
professionalEddy Vluggen28-Apr-09 22:49 
QuestionHow to programatically hide a DatagridComboboxColumn? [modified] Pin
rhemy27-Apr-09 20:15
rhemy27-Apr-09 20:15 
AnswerRe: How to programatically hide a DatagridComboboxColumn? [modified] Pin
Michael Bookatz28-Apr-09 1:05
Michael Bookatz28-Apr-09 1:05 
GeneralRe: How to programatically hide a DatagridComboboxColumn? Pin
Henry Minute28-Apr-09 1:12
Henry Minute28-Apr-09 1:12 
GeneralRe: How to programatically hide a DatagridComboboxColumn? Pin
Michael Bookatz28-Apr-09 1:14
Michael Bookatz28-Apr-09 1:14 
AnswerRe: How to programatically hide a DatagridComboboxColumn? Pin
Ageesh28-Apr-09 20:32
Ageesh28-Apr-09 20:32 
QuestionEvent handler for "linked" controls Pin
dybs26-Apr-09 8:48
dybs26-Apr-09 8:48 
AnswerRe: Event handler for "linked" controls Pin
Luc Pattyn26-Apr-09 9:24
sitebuilderLuc Pattyn26-Apr-09 9:24 

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.