We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to add values from textboxes into a unbound griddataboundgrid

Thread ID:





90923 Oct 24,2009 11:15 PM UTC Oct 26,2009 12:35 PM UTC ASP.NET Web Forms (Classic) 1
Tags: GridGroupingControl
Elias Avellaneda
Asked On October 24, 2009 11:15 PM UTC

i would like to now how to insert values from textboxes into a row of a unbound GDBG.

I tried with this but the values are not inserted:

Private Sub btnAddProduct_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAddProduct.Click

Me.GridDataBoundGridPedido.Item(1, 1).CellValue = 12

'Me.GridDataBoundGridPedido.Item(1, 1).CellValue = Me.txtCodProd.Text
'GridDataBoundGridPedido.Item(1, 2).CellValue = Me.txtDescProd.Text
'GridDataBoundGridPedido.Item(1, 3).CellValue = Me.lblPrecProd.Text
'GridDataBoundGridPedido.Item(1, 4).CellValue = Me.txtCantProd.Text
'GridDataBoundGridPedido.Item(1, 5).CellValue = 1224
Catch ex As Exception
End Try

End Sub
If someone could give me the solution, i would appreciate a lot!

Lingaraj S [Syncfusion]
Replied On October 26, 2009 12:35 PM UTC

Hi Elias,

Thank you for your interest in Syncfusion products.

A bounded column has it own datastore to store the values entered in it. But in an unbound column there is no datastore present in it, so it has to be handled manually by adding any collection like hashtable. To make unbound column work together with sort, assign key as corresponding primary key value in the row in the Key/Value pair of the external collection.

Refer the sampel from below link, it shows the behavior of unbound column in GridDataBoundGrid.

Please let me know if you have any queries.

Lingaraj S.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon