Hi ,
This is my Gridview :
PageSize="20" OnRowCommand="pendingOrders_RowCommand" OnRowDataBound="pendingOrders_OnDataBound" PagerStyle-CssClass="pagination_grid" OnSelectedIndexChanged="OnSelectedIndexChanged">
<%# Container.DataItemIndex + 1 %>
<%-- --%>
<%-- --%>
<%-- --%>
<%-- --%>
<%-- --%>
Screenshot :
This is C# code :
StringCollection idCollection = new StringCollection();
string strID = string.Empty;
foreach (GridViewRow gvrow in pendingOrders.Rows)
{
CheckBox chk = (CheckBox)gvrow.FindControl("chkSelect");
if (chk != null & chk.Checked)
{
strID = gvrow.Cells[1].Text;
idCollection.Add(strID);
}
}
}
string strID = string.Empty;
foreach (GridViewRow gvrow in pendingOrders.Rows)
{
CheckBox chk = (CheckBox)gvrow.FindControl("chkSelect");
if (chk != null & chk.Checked)
{
strID = gvrow.Cells[1].Text;
idCollection.Add(strID);
}
}
}
But here showing checkbox checked is false
Please give me a help
Thanks.

SivakumarPosted Apr 14, 2016, 5:47 AM
Amit KumarPosted Apr 14, 2016, 5:39 AM