我正在从表中获取数据并绑定到标签并在网格视图中下拉,但我想过滤表中的重复名称并将相应的日期分配给 DDL 怎么做?或者还有其他选择吗?
private DataSet get()
{
string sql = "select Id,Name,RunDate from Historytable";
SqlDataAdapter da=new SqlDataAdapter(sql,con);
DataSet ds=new DataSet();
da.Fill(ds);
return ds;
}
protected void GridView1_RowDataBound1(object sender, GridViewRowEventArgs e)
{
//what to code here?
}