I want to hide empty row in one particular column. I tried to but negative. Below is my code:
protected void gvDb_DataBound(object sender, EventArgs e)
{
foreach (GridViewRow rw in gvDb.Rows)
{
if ((string.IsNullOrEmpty(rw.Cells[1].Text) | (rw.Cells[1].Text == "")))
{
rw.Visible = false;
}
}
}
Sundaram SubramanianPosted Jun 15, 2017, 4:52 AM
Hope this may help you. Thanks in advanceRajkiran SwainPosted Jun 15, 2017, 6:02 AM