DataRow rd;
DataTable MyTable = new DataTable();
private void button1_Click(object sender, EventArgs e)
{
rd["Column1"] = textBox1.Text;
rd["Column2"] = textBox2.Text;
rd["Column3"] = textBox3.Text;
// MyTable.Rows.Add(rd);
}
i tried a lot to add data from text box into datagridview on button click..
i m new to c# and really want help from you...is these is the right one bcoz..its show error..
Thanks You in Advance..
This post has been edited by insertAlias: 24 February 2011 - 08:00 AM

New Topic/Question
Reply




MultiQuote







|