C#: How do I check if a DataGrid is empty? -


  अगर (grdMass.DataSource == "") {cmdRelease.Enabled = false; } और {cmdRelease.Enabled = true; ; }  

यह जांचने के लिए कि क्या कुछ रिक्त है आप देख सकते हैं कि आइटम गुण रिक्त है या नहीं।

  grdMass.Items.Count == 0  

Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

jquery - SimpleModal Confirm fails to submit form -