I need to get selected index value from the dropdownlist and sort it on the GridView.
The code above can only sort by column.
Anybody has any idea how to add the column with the selectedValue into the Sort?
dv.RowFilter = "NOID = '" + ddl.SelectedValue.ToString() + "'";
dv.Sort = "NOID = '" + ddl.SelectedItem + "'" + " " + "ASC";
i do not want this -
dv.Sort = "ID ASC";