I need a code in C#
like i am having an gridview and above the gridview i am having a drop down for different column in the dropDown i can select all the values or multiple values so can u please advice me on this how can i achieve this .
or in Short i want for gridview
Code
A Multiple Selection DropDownList (a CheckBoxList Inside a DropDownList)Based on the checkbox selection gridview data is populated .
Shams Rehman42 pointsPosted Jan 19, 2017, 8:02 PM EST
String message = ""; foreach (ListItem sp in listSports.Sports) { if (item.Selected) { message += sp .Text + " " + sp .Value + "\\n"; } } ClientScript.RegisterClientScriptBlock(this.GetType(), "alert", "alert('" + message + "');", true); }