if (DT.Rows.Count > 0)
{
try
{
DataView dvCompanyName = new DataView(DT);
grdProductList. DataSource = dvCompanyName;
grdProductList. DataBind();
}
catch (Exception ex)
{
if (!(grdProductLi st.CurrentPageI ndex < grdProductList. PageCount))
{
if (!(grdProductLi st.PageCount == 0))
{
grdProductList. CurrentPageInde x = grdProductList. PageCount - 1;
grdProductList. DataBind();
}
}
else
{
grdProductList. DataBind();
}
}
}
{
try
{
DataView dvCompanyName = new DataView(DT);
grdProductList.
grdProductList.
}
catch (Exception ex)
{
if (!(grdProductLi
{
if (!(grdProductLi
{
grdProductList.
grdProductList.
}
}
else
{
grdProductList.
}
}
}