Hi I want to disable the select button in every row that is not selected in my Gridview. now my question is how to disable the rows that is not selected? here is my initial code.
protected void GridSubjects_SelectedIndexChanged(object sender, EventArgs e)
{
string pIDstr = GridSubjects.SelectedValue.ToString();
hdnfldSubjID.Value = pIDstr;
GridViewRow b = GridSubjects.Rows[GridSubjects.SelectedIndex];
foreach (GridViewRow row in GridSubjects.Rows)
{
foreach (DataKey key in GridSubjects.DataKeys)
{
string babe = row.RowIndex.ToString();
int babe2 = int.Parse(babe);
string str = key.ToString();
if (str != pIDstr)
{
GridSubjects.Rows[babe2].Enabled = true;
}
else
{
...
Go to the complete details ...