Good day!

I just want a little help on how to add the textbox data onto the datagrid when a button is click? I have 3 textboxes(txtname,txtaddr,txtcontactno) and a datagrid with 3 columns(Name, Address, Contact #). When a button is clicked, the data of the 3 textbox shouls be transferred to the datagrid. I dont want to create & save data to database. I just want to do it that way.

Thank you for helping!

Recommended Answers

All 3 Replies

The name of "Datagrid" is telling you that it basically created to retrive data from database. You better use MS Flex grid for this purpose.

thank you Hamza Saleem. Ifigured it too.something like

flexgrid.TextMatrix(0,1)=text1.text

Is it working for you ?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.