I have inserted values in grid view and i dont want duplicate values in that gridview how it will be?
means if i again insert same values it should show error.
below is my insert code for gridview
rejfields s1 = new rejfields();
s1.Application = ddplAR.SelectedItem.ToString();
s1.Section = ddplRS.SelectedItem.ToString();
data.Add(s1);
ViewState["_data"] = data;
GridView2.DataSource = data;
GridView2.DataBind();