Link to home
Start Free TrialLog in
Avatar of Sootah
SootahFlag for United States of America

asked on

Exporting data from a datagrid column to a string

I have three columns in my datagrid, one for usernames, another for passwords, and one last for e-mail addresses.

I'd like to save the usernames column to a text file, so how do I grab the data from that column and slap it into a string?

I don't want to declare the dataset as a global, although I suppose I could and that would halfway work, but anything typed into the datagrid in that case would be ignored.

In short: I want to loop through the datagrid's username column and populate a string with it's contents. Is there a way to treat the dg as an array?



Avatar of Bob Learned
Bob Learned
Flag of United States of America image

ASP.NET or WinForms?  .NET version?  2002, 2003 or 2005?

Bob
Avatar of Sootah

ASKER

C# .NET 2005
Avatar of Sootah

ASKER

Oh, it's a Windows application.
ASKER CERTIFIED SOLUTION
Avatar of Yurich
Yurich
Flag of New Zealand image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial