SQLite - Exclude few column values while loading - c#

I am using Xamarin.Forms and SQLite to develop an enterprise app. I need to show the table structure in UI. The class has around 10 properties (columns). But I need only 6 columns in UI table. The remaining four columns values should be loaded once user selects particular row as those four columns are heavy text blob graph data and I can't afford to load them all along with all rows. I am using this SQLite method database.GetAllWithChildrenAsync<T>(); to load all rows and columns as of now. How to exclude those four column/property values while loading to avoid performance issues? Any help is appreciated as I haven't find much resources online on this.

Related

creating asp application with rich text and dynamic row controls

I am familiar with C# standalones but never written any web applications. I need some pointers on c# asp.net applications to do following stuffs.
Create a table profile, insert rows and columns with rich text edit controls, ability to insert images(low priority) and dynamic row manipulations like move rows, insert custom rows (e.g. a data row from a db that can be inserted into my current table profile) and then export different table profiles into tabbed excel sheet.
I am looking at:
https://msdn.microsoft.com/en-us/library/cc850837%28office.14%29.aspx
http://www.c-sharpcorner.com/UploadFile/hrojasara/export-datagridview-to-excel-in-C-Sharp/
http://www.codeproject.com/Tips/820176/ASP-NET-Gridview-with-Row-Drag-and-Drop-using-Jque
http://www.codeproject.com/Articles/467788/Dynamically-adding-and-deleting-rows-from-ASP-NET
I will do my research but since i have no experience on controls available if someone points in right directions on concepts which is suitable for this as this looks more complex for 1st app it will be helpful
I would recommend you Kendo UI framework that allows to do what you need. This is a website with demo - http://demos.telerik.com/kendo-ui/grid/index. It allows to make Excel and PDF export as well.

Efficient way of importing data from Excel Sheets, row by row, to be handed over to various tables in SQL Database end

I have a requirement to pull in thousands of records from an excel sheet into SQL. I have a Windows Client front end built that allows the user to select the Excel file(templated) to upload and then handle the data row by row. I tried using SSIS but since I am brand new to that, I am not having much luck there. Wanted to know if I can using plain old C# code efficiently the same import, and do so in best time?
As a quick hint, to point you in a promising direction, I'll suggest you work with array-copies of your excel-data. You can even copy those to memory / generate pointers to them, which might increase your performance.

How to create and manipulate powerpoint tables using openXML in C#

i am looking at this example on how to manipulate powerpoint templates from C# and the one thing missing is the ability to manipulate rows in a table. Does anyone have any examples of looping through some set of records and adding rows to a powerpoint table
In particular:
Adding and removing rows
Word wrap / auto adjusting heights given text length
Updating text in cells
Dealing with if the number of records would cause the table to span multiple powerpoint slides
In the end, i wound up purchasing aspose.slides which is great and well worth the cost when trying to auto generate powerpoin files.

System.OutOfMemoryException importing Page with a single large DataGrid into Excel (Quick Fix)

We use Excel for a number of ad-hoc pivots / reports.
To get the data into Excel we have a general page with a simple DataGrid that we bind from a DataSet / DataTable. We "Import External Data" using this URL in Excel.
Unfortunately we have a query that returns around 100 columns and 40k rows. The Application server only has 2GB of RAM and the used memory jumps up by 1 gig and then causes a System.OutOfMemoryException.
I intend to rewrite the page that produces the DataGrid to manually create an HTML table by looping through a DataReader rather than loading it all into a DataTable. I also intend to put more memory into the server.
My question is, how can I get this one spreadsheet to update right now? Is there any quick fix I can do to the DataGrid to temporarily let it work? I have already turned ViewState off for the DataGrid.
I don't think it's the DataGrid that is causing your out of memory exection, but rather your DataSet. We had this same problem where we had tens of thousands of records being populated into a treeview from a DataSet, resulting in slow load times. The reason is because the DataSet will load ALL of the data that is being queried, not just what is seen. There are two workarounds for this: create a just-in-time loader (using DataReader) that will retrieve your data as it is needed (of course, you then have the overhead of managing what data is or isn't local) or refine your DataSet query to reduce the number of records returned. I'm guessing the latter will be more appropriate for your current situation.

C# using Excel Interop Updating Formulas

I have a C# application that builds Excel files from an existing template. On the template I want to have my row totals/averages in place and to update to however many rows are inserted by the application (Between the header and footer rows). This should be simple but I am drawing a blank in trying to remember how to do such a thing.
Excel should automatically update the ranges in the footer formulas providing that the footer formulas reference at least two rows and the insertion happens between those two rows.
updated to reflect suggestions from ewbi's comment below

Categories

Resources