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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Francis SusaimichaelRank #466 · 5.4K reputationPosted Feb 11, 2015, 2:12 AM EST
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 + "')");
}
}
}
Francis SusaimichaelRank #466 · 5.4K reputationPosted Feb 10, 2015, 11:35 PM EST
http://www.codeproject.com/Articles/24475/Change-the-GridView-row-color-on-click-without-pos
GOWTHAM RAJ13 reputationPosted Feb 11, 2015, 1:03 AM EST
GOWTHAM RAJ13 reputationPosted Feb 11, 2015, 6:06 AM EST
GOWTHAM RAJ13 reputationPosted Feb 11, 2015, 6:51 AM EST
GOWTHAM RAJ13 reputationPosted Feb 11, 2015, 6:56 AM EST
GOWTHAM RAJ13 reputationPosted Feb 11, 2015, 7:22 AM EST