Click here to Skip to main content
15,884,099 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to make a dll library? Pin
Alex Dunlop16-Nov-20 2:25
Alex Dunlop16-Nov-20 2:25 
GeneralRe: How to make a dll library? Pin
OriginalGriff16-Nov-20 2:41
mveOriginalGriff16-Nov-20 2:41 
GeneralRe: How to make a dll library? Pin
Alex Dunlop16-Nov-20 2:48
Alex Dunlop16-Nov-20 2:48 
GeneralRe: How to make a dll library? Pin
OriginalGriff16-Nov-20 2:50
mveOriginalGriff16-Nov-20 2:50 
GeneralRe: How to make a dll library? Pin
Alex Dunlop16-Nov-20 3:09
Alex Dunlop16-Nov-20 3:09 
GeneralRe: How to make a dll library? Pin
OriginalGriff16-Nov-20 3:40
mveOriginalGriff16-Nov-20 3:40 
GeneralRe: How to make a dll library? Pin
Alex Dunlop16-Nov-20 4:15
Alex Dunlop16-Nov-20 4:15 
GeneralRe: How to make a dll library? Pin
OriginalGriff16-Nov-20 4:37
mveOriginalGriff16-Nov-20 4:37 
We are going to be here all day, I suspect ...

You have a DGV in one form.
It contains data which it is displaying.
That data is organised into rows and columns.
Somewhere in your code, you added data to that DGV, be it by creating individual columns and then adding rows, or by creating a DataTable / Collection which held the data and setting that as the DataSource for the DGV.

You want to use the data in the DGV in a separate method (in a separate Assembly which is a DLL) so that it can output data to an XLSX file.

That means you have to pass the DGV or it's source data to the method in some way via a parameter, or the method has no way to access it and no idea what to write to the file.

Are you with me so far?
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!

GeneralMessage Closed Pin
16-Nov-20 5:23
Alex Dunlop16-Nov-20 5:23 
GeneralRe: How to make a dll library? Pin
OriginalGriff16-Nov-20 5:41
mveOriginalGriff16-Nov-20 5:41 
GeneralRe: How to make a dll library? Pin
OriginalGriff16-Nov-20 2:21
mveOriginalGriff16-Nov-20 2:21 
QuestionC# WPF MenuItem Control not working Pin
Member 783087415-Nov-20 9:01
Member 783087415-Nov-20 9:01 
AnswerRe: C# WPF MenuItem Control not working Pin
Mycroft Holmes15-Nov-20 11:03
professionalMycroft Holmes15-Nov-20 11:03 
GeneralRe: C# WPF MenuItem Control not working Pin
Member 783087417-Nov-20 14:51
Member 783087417-Nov-20 14:51 
QuestionHow to group an array list, within a list of records, Linq GroupBy Pin
jkirkerx14-Nov-20 13:29
professionaljkirkerx14-Nov-20 13:29 
AnswerRe: How to group an array list, within a list of records, Linq GroupBy Pin
Gerry Schmitz14-Nov-20 22:31
mveGerry Schmitz14-Nov-20 22:31 
QuestionA proper way to return a list (Xamarin, CollectionView, Realm) Pin
Member 1499286214-Nov-20 9:10
Member 1499286214-Nov-20 9:10 
SuggestionRe: A proper way to return a list (Xamarin, CollectionView, Realm) Pin
Richard MacCutchan14-Nov-20 6:07
mveRichard MacCutchan14-Nov-20 6:07 
GeneralRe: A proper way to return a list (Xamarin, CollectionView, Realm) Pin
Member 1499286214-Nov-20 9:10
Member 1499286214-Nov-20 9:10 
GeneralRe: A proper way to return a list (Xamarin, CollectionView, Realm) Pin
OriginalGriff14-Nov-20 9:16
mveOriginalGriff14-Nov-20 9:16 
AnswerRe: A proper way to return a list (Xamarin, CollectionView, Realm) Pin
Mycroft Holmes14-Nov-20 12:18
professionalMycroft Holmes14-Nov-20 12:18 
GeneralRe: A proper way to return a list (Xamarin, CollectionView, Realm) Pin
Member 1499286216-Nov-20 8:17
Member 1499286216-Nov-20 8:17 
QuestionHow to selected value of a dropbox column of a DataGridView programmatically? Pin
Alex Dunlop13-Nov-20 0:41
Alex Dunlop13-Nov-20 0:41 
AnswerRe: How to selected value of a dropbox column of a DataGridView programmatically? Pin
Richard MacCutchan13-Nov-20 1:55
mveRichard MacCutchan13-Nov-20 1:55 
GeneralRe: How to selected value of a dropbox column of a DataGridView programmatically? Pin
Richard Deeming13-Nov-20 2:06
mveRichard Deeming13-Nov-20 2:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.