How can i get excat value from database in dropdown list which is in datagrid?

Questions by NiravDave

Showing Answers 1 - 1 of 1 Answers

Francis Mejula

  • Jul 27th, 2006
 

hi

try the following code. if it not workk,plz let me know

Dim datgrdtxt As New DataGridTextBoxColumn
Dim cmbRowCount as Integer
datgrdtxt = CType(dgrUserInfo.TableStyles(0).GridColumnStyles.Item(write column number where u want to have the drop down list), DataGridTextBoxColumn)
               
datgrdtxt.TextBox.Controls.Add(datgrdcmb)

' Fetch data from database into a dataset

For cmbRowCount = 0 To ds.Tables(0).Rows.Count - 1
 datgrdcmb.Items.Add(ds.Tables(0).Rows(cmbRowCount)(0))
Next

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions