insert record to a Gridview

Apr 6 2012 5:03 AM
Hi All,

I have a scenario like below;

I have a gridview and i have already loaded some records to the gridview from the database. Say 2 records with 3 columns.
And i have 3 textboxes with data and i want to fill the gridview with these data in 3 textboxes to a new line in gridview. After filling that i should see 4 records in gridview.

Ex:-

gridview1 (After loading data from database)
Charith
23
Test Data
Malith
25
ABSCEC
Ruwan
21
Test Data

Data in 3 textboxes   tb1=Amal  tb2=30  tb3=Test Data

So after inserting this into gridview
Charith
23
Test data
Malith
25
ABSCEC
Ruwan
21
Test Data
Amal
30
Test Data


can anybody give me a hand to do this?
Note: I can do the data loading part for the gridview.Only need inserting a newline to gridview. :)

Thanks,
Max


Answers (3)