using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public partial class PurchaseModule_PurchaseRequestCreate : System.Web.UI.Page { protectedvoid Page_Load(object sender, EventArgs e) { } protectedvoid GridView1_RowCommand(object sender, GridViewCommandEventArgs e) { } protectedvoid GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowIndex >-1) { SqlDataSource objDS = e.Row.FindControl("SqlDataSource1") as SqlDataSource; objDS.SelectParameters["Param1"].DefaultValue = e.Row.Cells[0].Text; } } }