Click here to Skip to main content
15,900,431 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionImport / Export of data from an Excel Sheet Pin
Siddhartha S.20-Jun-07 20:45
Siddhartha S.20-Jun-07 20:45 
QuestionButton control Pin
dodoxor20-Jun-07 20:14
dodoxor20-Jun-07 20:14 
AnswerRe: Button control Pin
Manas Bhardwaj22-Jun-07 5:08
professionalManas Bhardwaj22-Jun-07 5:08 
QuestionRe: Button control Pin
dodoxor22-Jun-07 21:19
dodoxor22-Jun-07 21:19 
AnswerRe: Button control Pin
Manas Bhardwaj23-Jun-07 2:07
professionalManas Bhardwaj23-Jun-07 2:07 
AnswerRe: Button control Pin
dodoxor23-Jun-07 21:40
dodoxor23-Jun-07 21:40 
AnswerRe: Button control Pin
vims25-Jun-07 21:58
vims25-Jun-07 21:58 
QuestionCheckbox column problem Pin
jimbaloo20-Jun-07 3:46
jimbaloo20-Jun-07 3:46 
Hi,

I have a windows forms app that contains a datagridview, with two filtered columns, some textbox columns, and a checkbox column. The filtering on the dgv is accomplished by using dropdowns on the column headers of the two filterable headers and this happens reasonably quickly.
My problem comes when I try to set the value of all the checkboxes to either checked or not checked. If I have a small number of rows in the dgv then each check operation takes about .0015 of a second. If I have a large number of rows that time jumps to 1.5 seconds per row. When I use the filters the dgv updates in about 2 seconds. I am at a loss.
The code I use to update the dgv checkbox column is:
<br />
            If btnSelectRecords.Text = FormConstants.ControlConstants.DESELECT_ALL_RECORDS Then<br />
                For Each row As DataGridViewRow In dgvLoanRecords.Rows<br />
                    row.Cells(FormConstants.GridViewConstants.SELECTED).Value = False<br />
                Next<br />
                btnSelectRecords.Text = FormConstants.ControlConstants.SELECT_ALL_RECORDS<br />
            Else<br />
                For Each row As DataGridViewRow In dgvLoanRecords.Rows<br />
                    row.Cells(FormConstants.GridViewConstants.SELECTED).Value = True<br />
                Next<br />
                btnSelectRecords.Text = FormConstants.ControlConstants.DESELECT_ALL_RECORDS<br />
            End If<br />


Can someone point me in the right direction to speed this process up.

Thanks

Jim
Questionbackgroundworker with typed dataset binding Pin
mcdonamw19-Jun-07 17:22
mcdonamw19-Jun-07 17:22 
QuestionPrinting a Form -&gt; Texbox is emty :( Pin
gant11219-Jun-07 4:47
gant11219-Jun-07 4:47 
AnswerRe: Printing a Form -&gt; Texbox is emty :( Pin
atulonweb@hotmail.com20-Jun-07 23:52
atulonweb@hotmail.com20-Jun-07 23:52 
QuestionFolderBorserDialog for images Pin
dodoxor18-Jun-07 21:29
dodoxor18-Jun-07 21:29 
AnswerRe: FolderBorserDialog for images Pin
Giorgi Dalakishvili18-Jun-07 22:57
mentorGiorgi Dalakishvili18-Jun-07 22:57 
AnswerRe: FolderBorserDialog for images Pin
dodoxor18-Jun-07 23:02
dodoxor18-Jun-07 23:02 
Questionhow change specific row back color in DataGrid? Pin
zeroonea17-Jun-07 20:51
zeroonea17-Jun-07 20:51 
AnswerRe: how change specific row back color in DataGrid? Pin
ozzyrocsdbn17-Jun-07 21:27
ozzyrocsdbn17-Jun-07 21:27 
GeneralRe: how change specific row back color in DataGrid? Pin
zeroonea17-Jun-07 21:51
zeroonea17-Jun-07 21:51 
GeneralRe: how change specific row back color in DataGrid? Pin
RepliCrux18-Jun-07 14:20
RepliCrux18-Jun-07 14:20 
GeneralRe: how change specific row back color in DataGrid? Pin
zeroonea18-Jun-07 19:09
zeroonea18-Jun-07 19:09 
GeneralRe: how change specific row back color in DataGrid? Pin
RepliCrux18-Jun-07 19:10
RepliCrux18-Jun-07 19:10 
AnswerRe: how change specific row back color in DataGrid? Pin
Stu Richardson20-Jun-07 6:30
Stu Richardson20-Jun-07 6:30 
QuestionUITypeEditor and Factory Creation Pin
Paul Selormey17-Jun-07 15:21
Paul Selormey17-Jun-07 15:21 
AnswerRe: Selected item count in a listbox Pin
Dave Kreskowiak15-Jun-07 15:10
mveDave Kreskowiak15-Jun-07 15:10 
GeneralRe: Selected item count in a listbox Pin
Paul Conrad17-Jun-07 6:30
professionalPaul Conrad17-Jun-07 6:30 
QuestionTime editor .NET Windows Forms control (Please !) Pin
NicoJS15-Jun-07 4:13
NicoJS15-Jun-07 4: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.