Click here to Skip to main content
16,020,315 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a case, where by clicking a button I have to save data from textboxex(combo) into a dataset and display them into a grid!
I declare a dtaset, a table also but then to many errors. Can anyone help me?
Posted
Comments
Azee 3-Oct-13 3:49am    
Post your code please.
Voley 3-Oct-13 3:56am    
Dim ds As New DataSet
Dim da As New SqlDataAdapter
Dim TblDetali As New DataTable

ds.Tables("TblDetali").Rows.Add(Row)
TblDetali.Rows(0)(0) = txtName.text
TblDetali.Rows(0)(1) = txtName.text

grdDisplay.DataSource = ds.Tables("TblDetali")
Thanks7872 3-Oct-13 3:52am    
No body can help you with this type of question.What you mean by "to many errors"? Which errors? Where is the code?

Hey there,

I think you want to create a DataTable from TextBoxes data and bind it to the datagrid.
Here check this to create DataTable Rows and Columns on the go.

http://www.dotnetperls.com/datatable[^]

Hope it helps.

Good luck.

Azee...
 
Share this answer
 
Comments
Voley 3-Oct-13 8:15am    
Thankyou very much. That was exactly what I was lookin for :)
 
Share this answer
 

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