private void BindUserWalletDetails(string userid) { DataTable dt = new DataTable(); try { dt = ob_wallet.getAdminWalletDetails(userid); if (dt.Rows.Count > 0) { gvWalletDetails.DataSource = dt; gvWalletDetails.DataBind(); } else { gvWalletDetails.DataSource = null; gvWalletDetails.DataBind(); } } catch { } }