//bind gvApprovalLeaveDetails private void BindApprovalLeaveDetails() { DataTable dt = leave.FetchApprovalLeaveDetails(UserID); if (dt.Rows.Count > 0) { gvApprovalLeave.DataSource = dt; gvApprovalLeave.DataBind(); } else { //no data found } }
//bind gvApprovalLeaveDetails private void BindApprovalLeaveDetails() { DataTable dt = leave.FetchApprovalLeaveDetails(UserID); if (dt.Rows.Count > 0) { gvApprovalLeave.DataSource = dt; gvApprovalLeave.DataBind(); } else { //no data found } }