Hi All I want to link the data result set from the database, to a DataGrid. I want to display it other than just columns as it comes from the database. ie. The usual DataGrid format ------------------------------------------------------ Column Data | Column Data | Column Data | Column Data ------------------------------------------------------ I want to display like this: ------------------------------- Column Data | ------------| Column Data | Column Data ------------| Column Data | ------------------------------- Hope that makes sense. Thanks in advance.
SunsOfFun
Posts
-
Custom DataGrid display -
Custom DataGrid displayHi All I want to link the data result set from the database, to a DataGrid. I want to display it other than just columns as it comes from the database. ie. The usual DataGrid format ------------------------------------------------------ Column Data | Column Data | Column Data | Column Data ------------------------------------------------------ I want to display like this: ------------------------------- Column Data | -------------| Column Data | Column Data -------------| Column Data | ------------------------------- Hope that makes sense. Thanks in advance.
-
BackgroundWorker and ProgressBarThank you, that makes sense. Do you think this method would be slower than the FileInfo or File classes? I am sure thaey use a very similar method within those classes. Thank you once again. Will be implementing the method.
-
BackgroundWorker and ProgressBarDo you know of any examples that I can take a look at?
-
BackgroundWorker and ProgressBarI want to display the status in a ProgressBar when copying large files across the network. I am using FileInfo.CopyTo method within the DoWork Method of the BackgroundWorker class (please see the code below). How am I able to fire events while the copying is taking place to update the ProgressBar. The problem is that the execution enters FileInfo.CopyTo method and does not leave until the process is complete. Hope this makes sense.
private void backgroundWorker_DoWork(object sender, DoWorkEventArgs e) { BackgroundWorker worker = sender as BackgroundWorker; reached = 0; fileInfoFrom = new FileInfo(@"C:\Temp\Path1\Test.zip"); fileInfoTo = new FileInfo(@"C:\Temp\Path2\Test.zip"); fs = (fileInfoTo.Exists) ? fileInfoTo.Length : 0f; fileInfoFrom.CopyTo(@"C:\Temp\Path2\Test.zip", true); /* thought about using the file size to * calculate the percentage for the progressbar*/ int completed = (int)((float)fs / (float)fileInfoFrom.Length * 100); if (completed > reached) { reached = completed; worker.ReportProgress(completed); } }
-- modified at 12:47 Sunday 4th December, 2005