Click here to Skip to main content
15,909,896 members
Home / Discussions / C#
   

C#

 
AnswerRe: wierd wierd wierd exception Pin
PIEBALDconsult24-Sep-08 17:15
mvePIEBALDconsult24-Sep-08 17:15 
AnswerRe: wierd wierd wierd exception Pin
DaveyM6924-Sep-08 23:26
professionalDaveyM6924-Sep-08 23:26 
GeneralRe: wierd wierd wierd exception Pin
nelsonpaixao25-Sep-08 13:32
nelsonpaixao25-Sep-08 13:32 
Questionwaiting SQL results and screen freezes Pin
mhp13024-Sep-08 10:01
mhp13024-Sep-08 10:01 
AnswerRe: waiting SQL results and screen freezes Pin
Paul Conrad24-Sep-08 11:13
professionalPaul Conrad24-Sep-08 11:13 
AnswerRe: waiting SQL results and screen freezes Pin
Anthony Mushrow24-Sep-08 12:37
professionalAnthony Mushrow24-Sep-08 12:37 
GeneralRe: waiting SQL results and screen freezes Pin
nelsonpaixao25-Sep-08 13:40
nelsonpaixao25-Sep-08 13:40 
QuestionProgressBar on filling a DataGrid Pin
CHLINDE24-Sep-08 9:41
CHLINDE24-Sep-08 9:41 
I use the following Code to fill a DataGrid:

private bool DataGridFuellen(string strDatenbankPfad, string strTabellenName)
{
    try
    {
        OleDbConnection Datenbankverbindung = DatenbankVerbindungOeffnen(strDatenbankPfad);

        OleDbCommand Befehl = new OleDbCommand();
        OleDbDataAdapter DatenAdapter = new OleDbDataAdapter(Befehl);
        DataTable Tabelle = new DataTable();

        Befehl.CommandText = "SELECT * FROM " + treeView_Tabellen.SelectedNode.Text;
        Befehl.Connection = Datenbankverbindung;
        Tabelle.Locale = System.Globalization.CultureInfo.InvariantCulture;
        DatenAdapter.Fill(Tabelle);

        dataGridView_TabellenInhalt.DataSource = Tabelle;

        Datenbankverbindung.Close();
        return true;
    }
    catch (Exception E)
    {
        MessageBox.Show("Beim Füllen des DataGrid ist ein Fehler aufgetreten: " + E.Message, "Fehler", MessageBoxButtons.OK, MessageBoxIcon.Error);
        return false;
    }
}


If the Scourcetable is very big, the process takes a long time and the user doesn't see, that the computer is still working.
I like to add a progressbar to visualize the working process, but my problem is, that i don't know how much data has been loaded out of the table.
Is there any way to get the actual point in the table.
I tried to add several eventhandlers, for example Dataadapter.RowUpdated, but it doesn't work yet.
AnswerRe: ProgressBar on filling a DataGrid Pin
Dave Kreskowiak24-Sep-08 9:45
mveDave Kreskowiak24-Sep-08 9:45 
QuestionDatabase Pin
CodingYoshi24-Sep-08 8:36
CodingYoshi24-Sep-08 8:36 
AnswerRe: Database Pin
Wendelius24-Sep-08 8:45
mentorWendelius24-Sep-08 8:45 
AnswerRe: Database Pin
Paul Conrad24-Sep-08 8:47
professionalPaul Conrad24-Sep-08 8:47 
AnswerRe: Database Pin
Pete O'Hanlon24-Sep-08 9:31
mvePete O'Hanlon24-Sep-08 9:31 
AnswerRe: Database Pin
Giorgi Dalakishvili24-Sep-08 20:19
mentorGiorgi Dalakishvili24-Sep-08 20:19 
QuestionWinForm to PDA? Pin
NewToAspDotNet24-Sep-08 7:52
NewToAspDotNet24-Sep-08 7:52 
AnswerRe: WinForm to PDA? Pin
DaveyM6924-Sep-08 8:08
professionalDaveyM6924-Sep-08 8:08 
GeneralRe: WinForm to PDA? Pin
NewToAspDotNet24-Sep-08 22:55
NewToAspDotNet24-Sep-08 22:55 
GeneralRe: WinForm to PDA? Pin
DaveyM6925-Sep-08 8:07
professionalDaveyM6925-Sep-08 8:07 
GeneralRe: WinForm to PDA? Pin
NewToAspDotNet25-Sep-08 13:10
NewToAspDotNet25-Sep-08 13:10 
QuestionSafe Event-Based Chat Server Pin
davidhere4024-Sep-08 7:30
davidhere4024-Sep-08 7:30 
QuestionStart Outlook Mail Message w/Attachments Pin
J$24-Sep-08 6:48
J$24-Sep-08 6:48 
AnswerRe: Start Outlook Mail Message w/Attachments Pin
J$24-Sep-08 8:27
J$24-Sep-08 8:27 
QuestionXml Serialization Pin
CodingYoshi24-Sep-08 6:03
CodingYoshi24-Sep-08 6:03 
AnswerRe: Xml Serialization Pin
Le centriste24-Sep-08 6:25
Le centriste24-Sep-08 6:25 
GeneralRe: Xml Serialization Pin
CodingYoshi24-Sep-08 7:50
CodingYoshi24-Sep-08 7:50 

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.