Sootah
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?
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?
ASKER
C# .NET 2005
ASKER
Oh, it's a Windows application.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Bob