Search results for query: *

  • Users: TB007
  • Order by date
  1. TB007

    Question Getting error transferring SQLite database data to dictionary

    Thats weird. My code worked completely fine without the portion mentioned in this question and I haven't bound anything from my original question code to anything on the XAML so I'm confused....
  2. TB007

    Question Getting error transferring SQLite database data to dictionary

    My guess would be that one of those two fields in NULL for at least one record That is not the case here, I've checked that. I've also added the below detailed error which I'm struggling to figure out, maybe you can help me fix or better understand it at...
  3. TB007

    Question Getting error transferring SQLite database data to dictionary

    I have the following SQLite database table When I load the WPF app I run the ff() method shown below public static string dbloc = @"Data Source=MYDATA.db"; internal static SQLiteConnection GetConnection() { return new SQLiteConnection(dbloc);}...
  4. TB007

    Question How to iterate through WPF datagrid columns following mvvm pattern?

    But how do I apply it in my case ? I've tried <DataGrid.Columns> <DataGridTextColumn Binding="{Binding Path=eName}" Width="260"> <DataGridTextColumn.HeaderTemplate> <DataTemplate>...
  5. TB007

    Question How to iterate through WPF datagrid columns following mvvm pattern?

    It sure seems that way !!! Lets see if I find solution from here ...
  6. TB007

    Question How to iterate through WPF datagrid columns following mvvm pattern?

    Yes, I do see data in my data grid. BTW, I've wrongly typed public string eHead1 = @"Name"; instead of public string billHead1 = @"Name"; in my previous post.
  7. TB007

    Question How to iterate through WPF datagrid columns following mvvm pattern?

    Here is my XAML for data grid <DataGrid SelectedItem="{Binding SelectedEmp, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" ItemsSource="{Binding FilteredEmps}" SelectionMode="Extended" AutoGenerateColumns="False" IsReadOnly="True" SelectionUnit="FullRow"...
  8. TB007

    Question How to iterate through WPF datagrid columns following mvvm pattern?

    I get your point. Actually in my XAML I have the set datagrid AutoGenerateColumns="False" & then added the columns like <DataGrid.Columns> <DataGridTextColumn Header="Name" Binding="{Binding Path=eName}" /> <DataGridTextColumn Header="Full Address"...
  9. TB007

    Question How to iterate through WPF datagrid columns following mvvm pattern?

    What I mean is that the header of the datagrid column has some text in it, say the datagrid has 3 columns "Name", "Address" & "Age", I want to get those text dynamicall and use it. As far as I know in mvvm I simply cannot use like foreach (DataGridColumn column in gridView.Columns) Are you...
  10. TB007

    Question How to iterate through WPF datagrid columns following mvvm pattern?

    No, I want to put them in a variable after getting their values.
  11. TB007

    Question How to iterate through WPF datagrid columns following mvvm pattern?

    I want to iterate through a datagrid header column and get its values to a variable, something like foreach (DataGridColumn column in gridView.Columns) { var cell = column.Header.ToString() } How can I do this following mvvm?
  12. TB007

    Resolved How to get the sum value from the selected rows of a datagrid(specific column) following mvvm ?

    Well, the intellisense doesn't show me the option of EmpSalary inside the ToDecimal portion So, I think I need to do this using a different approach but not sure what ?
  13. TB007

    Resolved How to get the sum value from the selected rows of a datagrid(specific column) following mvvm ?

    I have a Employees model with properties private int _id; public int Id { get { return _id; } set { SetValue(ref _id, value); } } private string...
  14. TB007

    Question Can my database copying method be more efficient?

    After editing the permissions now there are two Users, one with Full control and other with Read & execute
  15. TB007

    Question Can my database copying method be more efficient?

    Even after giving the user permissions to access the nominated location I'm still getting the same error...
  16. TB007

    Question Can my database copying method be more efficient?

    Yes, exactly that and I'm getting System.UnauthorizedAccessException: Access to the path 'D:\test\to\test.db' is denied.
  17. TB007

    Question Can my database copying method be more efficient?

    I have the database files hidden in the backupFolderPath, so the copy method throws an exception. How to get around that efficiently ?
  18. TB007

    Question Can my database copying method be more efficient?

    Hi @Skydiver , Did you mean File.Copy() ? I couldn't find any c# method called File.CopyFile() ?
  19. TB007

    Question Can my database copying method be more efficient?

    I'm not sure I get it. Can you show how and what benefits does it add?
Back
Top Bottom