3795 1
Remove duplicates from datatable in C#

Hello

based on this

https://www.technical-recipes.com/2017/obtaining-combinations-of-k-elements-from-n-in-c/#comment-52343

I create my data and I store them in a datatable.

Now I have another datatable which I fill it from my database.

I need to remove the duplicates from the first datatable and fill a datagridview.

This is what I have so far

...
Type
Question
3705 2
How can I convert string to time in C#?

Hello, I am trying to convert string to time in C#, how can I do that, for example, if I have time as "04:05 pm" in string format, how do I get it as time, timespan, or DateTime format in C#?

...
Type
Question
3689 1
GoogleWebAuthorizationBroker.AuthorizeAsync is not working on Server

GoogleWebAuthorizationBroker.AuthorizeAsync is not working on localhost but not working in server

...
Type
Question
3678 1
Generic type array get and set in C# , how to make it work?

getting error While executing the code below in C#

...
Type
Question
3662 2
How to subtract total of each row in C# matrix from constant number and sum the result?

Hi, I would like to know how to subtract total of each row in C# matrix from a magic constant number(example : 15) and sum the result, for example, here is my current matrix

...
Type
Question


3647 0
Convert C# Class to JSON with Example
In this article, I have explained how we can convert C# Class to JSON with an console application example.
Type
Article
3629 2
How can i undo my last Commits on Git?

I have committed some files on my Git using Visual Studio, which i want to undo now, as the code and i want to change it without pushing it to server, i haven't pushed the committed files on server yet, so how can i achieve it using Visual Studio or with some other source?

 

...
Type
Question
3614 0
Create GUID in C# (Various examples)
In this article, I have mentioned what is GUID in C# and how we can create GUID in C# with various examples
Type
Article
3523 2
Dynamic Menu Tree View from Database

This is the sample link from here also.

Sample Tree View

I've just wanted to know what is the best approach to render it fast.

On the link I provided you will see a tree view coming out from database.

What should I do to render it fast. Here's what I think please guide for better approache(s).

1) Load only parent, then load children when the parent was clicked. (What I think was, why should I fetch all data if I am not using it. That's why I only load parent then the children when the parent is clicked. Is right or not).

2) Build the tree view in api/controller before sending it back to frontview so when the loading was complete all data was already built. (but it takes to fetch coming out from api, the user will see broken menu tree view. Lets say I have e-commerce site like this. below image). How to build menu like this in fastest way without seeing broken tree. (The image is sample to see expected result.)

Happy Coding!

...
Type
Question
3411 1
Extract String between two string in C#?

Hello, I want simple and easy solution to extract or get string between two strings in C#, so for example I have string "Hello World, I am .NET developer", I need output as "I am" only.

How can i do it in simple and fast way? Thanks

...
Type
Question

Page 16 of 24