Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
QuestionIndexing Service Pin
ellllllllie5-Jun-09 2:50
ellllllllie5-Jun-09 2:50 
AnswerRe: Indexing Service Pin
Nagy Vilmos5-Jun-09 3:01
professionalNagy Vilmos5-Jun-09 3:01 
GeneralRe: Indexing Service Pin
ellllllllie5-Jun-09 3:30
ellllllllie5-Jun-09 3:30 
GeneralRe: Indexing Service Pin
Nagy Vilmos5-Jun-09 3:44
professionalNagy Vilmos5-Jun-09 3:44 
GeneralRe: Indexing Service Pin
dan!sh 5-Jun-09 3:46
professional dan!sh 5-Jun-09 3:46 
Questionbackground worker Pin
havejeet5-Jun-09 2:03
havejeet5-Jun-09 2:03 
AnswerRe: background worker Pin
Nicholas Butler5-Jun-09 2:13
sitebuilderNicholas Butler5-Jun-09 2:13 
AnswerRe: background worker Pin
I Believe In GOD5-Jun-09 2:18
I Believe In GOD5-Jun-09 2:18 
if you fill the Datagridview row by row then it's will take a while but it's easy

1- Get the DataTable rows count
2- Progress Max Value = row Count
3- on every row you add by manual Incearse the progressbar value

here is a sample :

int RowCount = 100;
       int AddRow = 0;
       private void button3_Click(object sender, EventArgs e)
       {
           progressBar1.Maximum = RowCount;
           backgroundWorker1.WorkerReportsProgress = true;
           backgroundWorker1.RunWorkerAsync();

       }

       private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
       {
           for (int i = 0; i < RowCount; i++)
           {
               AddRow = i;
               backgroundWorker1.ReportProgress(AddRow);
           }

       }

       private void backgroundWorker1_ProgressChanged(object sender, ProgressChangedEventArgs e)
       {
           progressBar1.Value = e.ProgressPercentage;
       }


P.S :
I would never add row to datagrid manually I would use DataSource properties

I know nothing , I know nothing ...

AnswerRe: background worker Pin
DaveyM695-Jun-09 2:27
professionalDaveyM695-Jun-09 2:27 
QuestionForward a port in a router programmatically Pin
Majid_grok5-Jun-09 1:55
Majid_grok5-Jun-09 1:55 
AnswerRe: Forward a port in a router programmatically Pin
harold aptroot5-Jun-09 2:14
harold aptroot5-Jun-09 2:14 
QuestionCreating a CSV File from a datatable with C# Pin
jonhbt5-Jun-09 1:47
jonhbt5-Jun-09 1:47 
AnswerRe: Creating a CSV File from a datatable with C# Pin
I Believe In GOD5-Jun-09 1:56
I Believe In GOD5-Jun-09 1:56 
QuestionArrow keys on form with Tabs with GridViews Pin
Nigel Mackay5-Jun-09 1:12
Nigel Mackay5-Jun-09 1:12 
AnswerRe: Arrow keys on form with Tabs with GridViews Pin
dan!sh 5-Jun-09 1:18
professional dan!sh 5-Jun-09 1:18 
GeneralRe: Arrow keys on form with Tabs with GridViews Pin
Nigel Mackay5-Jun-09 2:09
Nigel Mackay5-Jun-09 2:09 
GeneralRe: Arrow keys on form with Tabs with GridViews Pin
dan!sh 5-Jun-09 3:19
professional dan!sh 5-Jun-09 3:19 
GeneralRe: Arrow keys on form with Tabs with GridViews Pin
Nigel Mackay5-Jun-09 3:55
Nigel Mackay5-Jun-09 3:55 
GeneralRe: Arrow keys on form with Tabs with GridViews Pin
dan!sh 5-Jun-09 3:57
professional dan!sh 5-Jun-09 3:57 
GeneralRe: Arrow keys on form with Tabs with GridViews Pin
Nigel Mackay5-Jun-09 4:04
Nigel Mackay5-Jun-09 4:04 
GeneralRe: Arrow keys on form with Tabs with GridViews Pin
dan!sh 5-Jun-09 4:06
professional dan!sh 5-Jun-09 4:06 
GeneralRe: Arrow keys on form with Tabs with GridViews Pin
Nigel Mackay5-Jun-09 4:14
Nigel Mackay5-Jun-09 4:14 
GeneralRe: Arrow keys on form with Tabs with GridViews Pin
dan!sh 5-Jun-09 4:15
professional dan!sh 5-Jun-09 4:15 
GeneralRe: Arrow keys on form with Tabs with GridViews Pin
Henry Minute5-Jun-09 4:43
Henry Minute5-Jun-09 4:43 
Questionstring declare Pin
michaelgr15-Jun-09 0:35
michaelgr15-Jun-09 0:35 

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.