In this article I will show you the GridView control as a movie screen layout like shown in below images in ASP.Net.
<connectionStrings> <add name="constr" connectionString="User Id = sa; Password = 123; Database = GridView_As_A_MOVIE_ScreenLayout; Data Source= KatareRaju"/> </connectionStrings>
/// <summary> /// BindScreens method binds the all screens to the ddlScreens DropDownList of Panel2(GroupingText="ScreenDesign";) /// </summary> void BindScreens() { try { ddlScreens.Items.Clear(); ddlScreens.DataSource = obj.GetScreens(); ddlScreens.DataTextField = "ScreenName"; ddlScreens.DataValueField = "ScreenId"; ddlScreens.DataBind(); ddlScreens.Items.Insert(0, "Select"); } catch (Exception) { throw; } } //Page Load protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { BindScreens(); } }
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: