P
Poonam
I used the datagrid column style to add the datagridtextbox column and
set the null text as 0. Also my dataset dsProds contains 4 columns but
I want 5 columns one for textbox.
I have used following code:
dim dsProds as dataset
dsProds = pxy.getProductCatalog(cmbChnl.SelectedValue)
Dim theCount, i As Integer
Dim dp As New DataTable
Dim dpRow As DataRow
dp = dsProds.Tables(0)
dp.Columns.Add("Quantity", System.Type.GetType("System.Int32"))
theCount = dsProds.Tables(0).Rows.Count()
For i = 0 To theCount - 1
dpRow("Quantity") = 0
Next
Dim dsProds As New DataSet
dsProds.Tables.Add(dp)
dgProdList.DataSource = dsProds
dgProdList.DataMember = "Product"
Are the last few lines correct?
Poonam
set the null text as 0. Also my dataset dsProds contains 4 columns but
I want 5 columns one for textbox.
I have used following code:
dim dsProds as dataset
dsProds = pxy.getProductCatalog(cmbChnl.SelectedValue)
Dim theCount, i As Integer
Dim dp As New DataTable
Dim dpRow As DataRow
dp = dsProds.Tables(0)
dp.Columns.Add("Quantity", System.Type.GetType("System.Int32"))
theCount = dsProds.Tables(0).Rows.Count()
For i = 0 To theCount - 1
dpRow("Quantity") = 0
Next
Dim dsProds As New DataSet
dsProds.Tables.Add(dp)
dgProdList.DataSource = dsProds
dgProdList.DataMember = "Product"
Are the last few lines correct?
Poonam