241.
Bind datatable to Gridview with in GridView[Template Field]
I assume you have the DataTable now.gridView2.DataSource = dataTable;gridView2.DataBind();The above code will do the magic.
|
Venkatesh Mookkan
|
Updated: 15 Mar 2011
Rating:
( (No votes))
|
|
.
()
|
|
Updated:
Rating:
()
|
|
242.
WPF nested Datagrid in datagrid details {binding}
Seth007 wrote:I see a typo mistake in the your XAML. Merkenlijst is this correct...
|
Venkatesh Mookkan
|
Updated: 9 Mar 2011
Rating: 3.00/5
( (1 vote))
|
|
243.
Convert DateTime String to Datetime
Use DateTime.TryParse method.This is how it is done:DateTime dateTime;DateTime.TryParse(strDateTime, out dateTime);The coolest part is TryParse will return True if the parsing is successful and return False if the parsing fail. You can either use the statement in a if...
|
Venkatesh Mookkan
|
Updated: 9 Mar 2011
Rating: 3.20/5
( (2 votes))
|
|
244.
Installation Visual Studio 2010 hangs
It is depends on many aspects.- Did your machine comply with the minimum requirement of the VS 2010?- Did you check any other process or application running behind the scene?- Did you checked the setup logs? It would be in the Temp directory of your Windows. You can go to Temp directory...
|
Venkatesh Mookkan
|
Updated: 9 Mar 2011
Rating:
( (No votes))
|
|
245.
Name cannot Found InvalidOperationException
I changed your XAML to below and I didn't got any exception and the stars showed up.Here I am calling CreateRandomStars() method from MyCanvas's Loaded event.But when CreateRandomStars() method is called from Window's Loaded event, I am...
|
Venkatesh Mookkan
|
Updated: 9 Mar 2011
Rating: 5.00/5
( (1 vote))
|
|
246.
comparing data in a string to an xml.
Use DataTable. DataTable has a method to ReadXml which would read from Xml File/Stream and categorize into virtual tables. You can easily find and update the string at any point.Note: This is a quick solution (dirty solution) but would work perfectly. ;)
|
Venkatesh Mookkan
|
Updated: 9 Mar 2011
Rating:
( (No votes))
|
|
.
()
|
|
Updated:
Rating:
()
|
|
.
()
|
|
Updated:
Rating:
()
|
|
247.
How to make a single "exe" setup file?
Whatever you did is ClickOnce deployment method.Actually you need to use Setup & Deployment project which is available in Visual Studio.Refer: A Setup and Deployment project that passes parameters to the configuration file[^]. Note: This is just a sample reference. Searching on...
|
Venkatesh Mookkan
|
Updated: 7 Mar 2011
Rating:
( (No votes))
|
|
248.
How to make password Box to take normal text without masking
Write a custom PasswordBox of your own specification. Writing custom control in WPF is very easy and simple.Examples:Create a WPF Custom Control, Part 1[^]Create a WPF Custom Control, Part 2[^]Note: These are examples how to write a custom control in WPF.or try the below...
|
Venkatesh Mookkan
|
Updated: 4 Mar 2011
Rating: 5.00/5
( (2 votes))
|
|
.
()
|
|
Updated:
Rating:
()
|
|
.
()
|
|
Updated:
Rating:
()
|
|
249.
C# WPF Project Threading - Need Help
I would suggest you to use BackgroundWorker object in this case which has complete control to start, stop, completed and progression.And whatever SA[^] mentioned in the C# WPF Project Threading - Need Help[^] also make sence.Examples:BackgroundWorker in Silverlight[^]Responsive...
|
Venkatesh Mookkan
|
Updated: 2 Mar 2011
Rating: 5.00/5
( (1 vote))
|
|
.
()
|
|
Updated:
Rating:
()
|
|
250.
streamreader 'stalls' when sharing a file
I guess, you are trying to opening the file while in use.Try the below block. May be it help.FileStream fs = new FileStream("TestFile.txt", FileMode.Open, FileAccess.Read);using (StreamReader reader = new StreamReader(fs)){ MessageBox.Show(reader.ReadLine());}Mark it as...
|
Venkatesh Mookkan
|
Updated: 1 Mar 2011
Rating: 5.00/5
( (1 vote))
|
|
.
()
|
|
Updated:
Rating:
()
|
|
251.
how to fix this error in visual basic 2008 express edition
Possible reason:- PrintForm1 could be null- PrintForm1.PrinterSettings could be null- PrintForm1.PrinterSettings.DefaultPageSettings could be null.Please check for null before you proceed.Update 1:Null Check in VB:If PrintForm1 IsNot Nothing Then'YOUR CODEEnd...
|
Venkatesh Mookkan
|
Updated: 21 Feb 2011
Rating: 5.00/5
( (2 votes))
|
|
252.
how to add events in a dynamically created control
HyperLink hyperLink = new HyperLink();hyperLink.Click += OnHyperLinkClick;
|
Venkatesh Mookkan
|
Updated: 21 Feb 2011
Rating: 4.60/5
( (3 votes))
|
|
253.
Any one know silverlight means tell me the solution for this its urgent
You could use Web Services. But if it is too much for your application, you can write Handlers on the server-side and use it in your Silverlight Applications.Silverlight 3: Displaying SQL Server Data[^]My First Data Application in Silverlight 2[^]Basic Database Operations in...
Silverlight »
Silverlight4 »
|
Venkatesh Mookkan
|
Updated: 20 Feb 2011
Rating:
( (No votes))
|