Solved

how to get data from datagird ???

Posted on 2004-10-25
173 Views
Last Modified: 2010-04-15
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...
0
Question by:sonbinary
    5 Comments
     
    LVL 22

    Expert Comment

    by:Snarf0001
    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
     

    Author Comment

    by:sonbinary
    0
     

    Author Comment

    by:sonbinary
    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
     

    Author Comment

    by:sonbinary
    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
     
    LVL 2

    Accepted Solution

    by:
    That line should be:

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

    hope it helps,
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone. Privacy Policy Terms of Use

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Suggested Solutions

    Article by: Najam
    Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
    Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    877 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now