selected cell in datagrid want to change color
while selecting a cell in datagrid view want to hightlight in color ,and more than one cell want selected ,At a time undo the already selected cells?asp .net
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Francis SusaimichaelPosted Feb 11, 2015, 7:12 AM
protected void gvEmployee_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
int cnt = e.Row.Cells.Count;
for (int i = 0; i < cnt; i++)
{
e.Row.Cells[i].Attributes.Add("onclick", "javascript:ChangeRowColor('" + e.Row.Cells[i].ClientID + "')");
}
}
}
GOWTHAM RAJPosted Feb 11, 2015, 12:22 PM
GOWTHAM RAJPosted Feb 11, 2015, 11:56 AM
GOWTHAM RAJPosted Feb 11, 2015, 11:51 AM
GOWTHAM RAJPosted Feb 11, 2015, 11:06 AM
GOWTHAM RAJPosted Feb 11, 2015, 6:03 AM
Francis SusaimichaelPosted Feb 11, 2015, 4:35 AM
http://www.codeproject.com/Articles/24475/Change-the-GridView-row-color-on-click-without-pos