C# .NET - How can i show progress bar status when data adding to datagridview.

Asked By vaibhav
06-Sep-10 01:35 AM
Hi ,
  i have datagridview in Windows Form, & a want to retrieve data in to datagridview from database. so, i want to use progerss bar which will show progress of adding records in to datagridview. bar must started on staring dataaccess & must stop on data is finished...Thanks
  Peter Bromberg replied to vaibhav
06-Sep-10 08:02 AM
It's not that simple. Unless your data access code is firing progress events that can be subscribed to, there is no way to display an accurate progress indicator. You could try showing an animated gif which can be turned off when all the data is available.
  vaibhav replied to Peter Bromberg
06-Sep-10 09:27 AM
Sir, Thanks for reply. 
  Actually, I got little bit solution, i.e. when i call showall() function messagebox appears for telling to hold patience,
   after that data is added to datagridview, i m showing messagebox that shows 'data is loaded' & then instantly progress bar get starts & ends. So i want to start the progress bar, which will start when messagebox for patience will started & end will second data is loaded..
  So if u suggest any code then i will thankful....
  shravan kumar replied to vaibhav
06-Sep-10 09:28 AM
Using Thread and assign to progress bar control
  vaibhav replied to shravan kumar
06-Sep-10 09:30 AM
please send me any code, which will satisfy my query....Thanks
Create New Account
help
is CTS? (B)What is a CLS (Common Language Specification)? (B)What is a Managed Code? (B)What is a Assembly? (A) What are the different types of Assembly? (B) What C#? (I) what is the difference between System exceptions and Application exceptions? (I)What is CODE Access security? (I)What is a satellite assembly? (A) How to prevent my .NET DLL to in .NET? (B) When we use windows API in .NET is it managed or unmanaged code? (I)What is COM? (A) What is Reference counting in COM? (A) Can you describe Threading (B) What is Multi-tasking? (B) What is Multi-threading? (B) What is a Thread? (B) Did VB6 support multi-threading? (B)Can we have multiple threads in one App A) What does Address Of operator do in background? (A) How can you reference current thread of the method? (I) what is Thread.Sleep () in threading? (A) How can we make a thread sleep for infinite period? (A) What is Suspend and Resume in Threading? (A) What the
Use of external xml file in wsp webpart to storing and retriving data Hi, I have created an xml file with this code. Named as PageSize.xml. <?xml version = "1.0" encoding = "ISO-8859-1"?> <Page> <PageSize pSize this file under Layout folder directory. And use this in my wsp webpart with this code on button click event: protected void btnSave_Click(object sender, EventArgs e) { XmlDocument xmlDoc = new XmlDocument xNode1.Attributes.GetNamedItem("pSize").InnerText = txtPageSize.Text; xmlDoc.Save(strXMLPath); } It gives an error for Access Denied this file. like: Access to the path 'C: \ Program Files \ Common Files \ Microsoft Shared \ Web Server Extensions \ 12 \ template value in another webpart. Please give me solutin if any. Many thanks Narendra Exploring the Data View Web Part Companies typically use a multitude of repository types to store and manage their data. A company may use SQL Server to store relational data; the Windows file system for storing semi-structured data and eXtensible Markup Language (XML) files
14 12:35:41 2005 OS = Windows 2003 Server Executable: w3wp.exe PID = 5528 Note: Thread times are formatted as HH:MM:SS.ms * ** ** ** ** ** ** ** ** ** ** ** IIS has crashed. . . Beginning Analysis * ** ERROR: Symbol to export symbols for C: \ WINNT \ system32 \ SQLSRV32.dll - DLL (!FunctionName) that failed: SQLSRV32!SQLDescribeColW Thread ID: 21 System Thread ID: c64 Kernel Time: 0:0:48.562 User Time: 0:3:25.656 Thread Type: Other # ChildEBP RetAddr WARNING: Stack unwind information not available. Following frames may be wrong 14 12:35:49 2005 OS = Windows 2003 Server Executable: w3wp.exe PID = 5528 Note: Thread times are formatted as HH:MM:SS.ms * ** ** ** ** ** ** ** ** ** ** ** Thread ID: 0 System Thread ID: 16fc Kernel Time: 0:0:0.31 User Time: 0:0:0.31 * ** ERROR could not be found. Defaulted to export symbols for c: \ winnt \ system32 \ inetsrv \ w3core.dll - Thread Status: Thread is in a WAIT state. Thread Type: HTTP Compression Thread # ChildEBP RetAddr 00