Change the Status in Gridview column
-
Hi, I have a gridview and a button-Start in aspx page. In gridview 3 columns checkbox , Name and Status. Select multiple columns and click on Start then Status column for selected rows should be changed to "Starting...", later it should be changed to "Started". But it is showing directly "Started". In the mean time i should see "Starting..." also. Here is my code Aspx page Start .cs File protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { GridData(); } } public void GridData() { DataTable dt = new DataTable(); dt.Columns.Add("VMName"); dt.Columns.Add("Status"); dt.Rows.Add("abc", "Stopped); dt.Rows.Add("xyx", "Running); dt.Rows.Add("xyz", "Stopped); GrdViewM.DataSource = dt; GrdViewM.DataBind(); } public ArrayList FindChk() { ArrayList arr = new ArrayList(); if (GrdViewM.Rows.Count > 0) { for (int i = 0; i < GrdViewM.Rows.Count; i++) { //finding checkbox in GridView CheckBox cbx = (CheckBox)GrdViewM.Rows[i].FindControl("ChkBoxView"); //CheckBox not null if (cbx != null) { //if CheckBox Checked if (cbx.Checked) { arr.Add(new string[] { i.ToString(), GrdViewM.Rows[i].Cells[1].Text}); } } } } return arr; } protected void LnkBtnStart_Click(object sender, EventArgs e