View Full Version : dropdownlist داخل gridview
AftaB66
چهارشنبه 05 فروردین 1388, 12:33 عصر
سلام
عیدتون مبارک.
من می خوام توی هر سطر gridview یک dropdownlist داشته باشم . اما نمی دونم چه جوری باید این dropdownlist رو بایند کنم .
حتی سعی کردم این بایند رو داخل onrowdatabound event انجام بدم ولی این event اصلا raise نمی شه!!
لطفا منو راهنمایی کنید
meysam_12001
چهارشنبه 05 فروردین 1388, 13:12 عصر
CType(GridView1.Rows(i).Cells(7).FindControl("DropDownList1"), DropDownList).DataSource = ds.Tables("test")
CType(GridView1.Rows(i).Cells(7).FindControl("DropDownList1"), DropDownList).DataTextField = "Act_Name"
CType(GridView1.Rows(i).Cells(7).FindControl("DropDownList1"), DropDownList).DataValueField = "Act_ID"
CType(GridView1.Rows(i).Cells(7).FindControl("DropDownList1"), DropDownList).DataBind()
i : شماره سطر
bitasoft.ir
شنبه 21 شهریور 1388, 23:30 عصر
CType(GridView1.Rows(i).Cells(7).FindControl("DropDownList1"), DropDownList).DataSource = ds.Tables("test")
CType(GridView1.Rows(i).Cells(7).FindControl("DropDownList1"), DropDownList).DataTextField = "Act_Name"
CType(GridView1.Rows(i).Cells(7).FindControl("DropDownList1"), DropDownList).DataValueField = "Act_ID"
CType(GridView1.Rows(i).Cells(7).FindControl("DropDownList1"), DropDownList).DataBind()
i : شماره سطر
سلام
آقا این CType چیه.
ازکجا اومده.
داخل کدوم فایل سرآینده.
خلاصه یه توضیحی در موردش بدین اگه می شه.
با تشکر
vBulletin® v4.2.5, Copyright ©2000-1403, Jelsoft Enterprises Ltd.