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

iphone - How do I make a UIPickerView in a UIActionSheet -

java - Is there an object like a "Set" that can contain only unique string values, but also contain a count on the number of occurrences of the string value? -

MVP, design question -