hi,
i want help on adding a dropdownlist in a datagrid when it is in edit mode and a way to populate it from the database.
thank u in advance
abhijit
hi,
i want help on adding a dropdownlist in a datagrid when it is in edit mode and a way to populate it from the database.
thank u in advance
abhijit
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Amit MPosted Oct 9, 2007, 8:59 AM
By adding a template column you can add dropdown list in datagrid.
and for binding drop down from database you have two ways.
1).make an asp:sqldatasource and pass its id to ur dropdown list datasource
id properties.
2).fill dropdown list in rowdatabound event.which get execute after binding the grid.