Gridview with DDL and textbox

Posted by Sbadrian under ASP.NET on 6/25/2009 | Views : 1285 | Status : [Member] | Replies : 2
Does anybody have an example of a gridview with dropdownlist selection in different columns and textbox to insert value to database directly from the grid? I need to select some values with a DDL inside the grid columns.

Hope for an example.
Thank you




Responses

Posted by: Vuyiswamb on: 6/25/2009 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
Good Day Sbadrian

See the Link Below

http://www.codeproject.com/KB/cs/N-Tier22.aspx


Thank you for Posting at DotnetFunda

Vuyiswa Maseko

Thank you for posting at Dotnetfunda
[Administrator]

Sbadrian, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Majith on: 6/28/2009 [Member] Starter

Up
0
Down
Greetings,

On row editing add the sample code:

int Editindex = e.NewEditIndex;

Dropdownbox ddldrop = (Dropdownbox )Gridview1.Rows[Editindex].FindControl("ddldrop");

ddldrop.DataSource = dataset.Tables[0];
ddldrop.DataBind();


Thanks




Sbadrian, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response