I am new to WPF and in this example I am basically trying to add the following delete functionality.
DELETE FROM InspectorTime WHERE TimeID=@TimeID
Can anyone guide me? Txs
Here's the xaml code:
Here's the ref code:
private void VoidButton_Click(object sender, RoutedEventArgs e)
{
if (MessageBox.Show("Are you sure you want to void the time?", "Void Inspection", MessageBoxButton.YesNo, MessageBoxImage.Question) == MessageBoxResult.Yes)
// delete SQL query
{
try
{
MessageBox.Show("Information Updated.", "Update");
}
catch (Exception oEx)
{
MessageBox.Show("Information not Updated.", "Update");
}
}
}
Vijaya KadiyalaPosted Apr 10, 2009, 2:08 PM
Hi
Check out the below link
http://www.codeproject.com/KB/WPF/WPFDataGridExamples.aspx
Thanks -- Vijaya Kadiyala
www.DotNetVJ.Com