how to get data from datagird ???

I code a small application using datagird to store data.....
my app have 2 button.....
First button dynamix create a datagird using datatable ......then I type some data in datagird...
Second button....now I want to get these data from datagird to Datatable or array...how can I do this..???

I don't want use dataset...
sonbinaryAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Snarf0001Commented:
From the sounds of it, I'm assuming you're using windows forms, not web forms.  If so, the datatable will already contain the data entered in the grid.

Can you post your code for

<< First button dynamix create a datagird using datatable >>

If I'm understanding you properly, then datatable you're using will automatically be filled with data as you enter it into the grid.
0
sonbinaryAuthor Commented:
I use windows Form
I want to know "how to get data when I type data on datagird"...you know.....I don't use database....I just create a datagird, type something on datagird and I want to save these datas to datatable on onece click button.......
0
sonbinaryAuthor Commented:
I can't code this line :  
DataTable db= new DataTable();
db=DataGird1.DataSource; //----->> I want to get data on Datagird but I can't do that.....
0
dsaboCommented:
That line should be:

DataTable db= new DataTable();
db=(DataTable) DataGird1.DataSource;

hope it helps,
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.