Click here to Skip to main content
16,007,126 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to hold new data as well as old in a data grid view i dont know to to do this please help me to do so
i fetch data using filltoolstrip option of visual studio my code is

C#
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApplication7_urgentbillfinal
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void fillToolStripButton_Click(object sender, EventArgs e)
        {
            try
            {
                this.urgentbillTableAdapter.Fill(this.esdataDataSet.urgentbill, new System.Nullable<int>(((int)(System.Convert.ChangeType(vnoToolStripTextBox.Text, typeof(int))))), new System.Nullable<System.DateTime>(((System.DateTime)(System.Convert.ChangeType(vdtToolStripTextBox.Text, typeof(System.DateTime))))));
            }
            catch (System.Exception ex)
            {
                System.Windows.Forms.MessageBox.Show(ex.Message);
            }

        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {

        }
    }
}


plz help me how can i hold all the data in a single grid without losing the old data new data has to be paste under old
Posted
Comments
Sergey Alexandrovich Kryukov 12-Jun-15 9:14am    
First of all, it's not clear what you are trying to do with your code. Short answer is: you need to design such functionality, and it cannot be just holding data in one control. First of all, you need to design the whole UI approach which would show the users clearly how to work with "historical" values, be self-describing.
—SA
vikasmanhas 12-Jun-15 23:21pm    
i want to hold data on grid i am using filltoolstrip and it allow me to show only current data when i pass query but ti want to see the data of all query i run in a day for example
when i put bill to xyz it shows data in grid but when i change the bill no grid dosnt hold the data of xyz bill and shows new bill no data so i want to hold all bill no data in a grid plz help me

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900