8
Answers

Transfer Data From One Datagridview To Another

mahesh waghela

mahesh waghela

13y
12.4k
1
I have a two datagridview as 

datagridview1
datagridview2

datagridview1 has a checkbox columns which check the rowindex and transfer the same row to another datagridview2

datagridview1 is a databound control and having columns as below:

checkbox Column,Name and Amount

where as datagridview2 also having same column accept checkbox column.

I wants to transfer data of datagridview1.selected rows to another datagridview2 by click on checkbox column.

How to do?.


Answers (8)
1
Vulpes

Vulpes

NA 98.3k 1.5m 14y
You can do a lot with the System.ServiceProcess.ServiceController class such as:

1. Get a list of services (except device drivers) running on the local machine by calling the GetServices() method.

2. Get a list of device drivers with the GetDevices() method. 

3. Stop, Start, Pause and Continue a service and check first whether these actions are permitted or not.

However, what you can't do is to determine whether a service starts up automatically when the system is booted or whether it's currently disabled. To do this you need to interrogate the StartMode property of the WMI class Win32_Service. This class also has a method called ChangeStartMode which you can use to disable or enable a service.

The following links may be useful:
1
Suthish Nair

Suthish Nair

NA 31.7k 4.6m 14y

 Lots of samples available startup services + c#


1
Sam Hobbs

Sam Hobbs

NA 28.7k 1.3m 14y

See Autoruns for Windows. I don't know if there is source code for it and if there is it is probably in C++. You could at least see all the possible places to look for autorun software and then you need to figure out how to read each one. Note that there are multiple places to look at and each place is a separate question. For example reading the registry is different from other places that need to be looked at.