如何在datagridview中使行可扩展和可折叠

时间:2015-06-17 05:54:33

标签: c# windows winforms datagridview

我想DataGridView Groups SubGroupsRow,我希望Group可扩展且可折叠。就像'A'是SubGroups一样,当我展示'A'Row时,其中三个SubGroups值'xxx','yyy','zzz'然后这些Row应该显示崩溃'A'Subgroups public string GetSHA512(string input) { byte[] data, result; StringBuilder hash = new StringBuilder(); data = Encoding.UTF8.GetBytes(input); using (SHA512 shaM = new SHA512Managed()) { result = shaM.ComputeHash(data); } for (int i = 0; i < result.Length; i++) { hash.Append(result[i].ToString()); } return hash.ToString(); } public string GetSHA256(string input) { byte[] data, result; StringBuilder hash = new StringBuilder(); data = Encoding.UTF8.GetBytes(input); using (SHA256 shaM = new SHA256Managed()) { result = shaM.ComputeHash(data); } for (int i = 0; i < result.Length; i++) { hash.Append(result[i].ToString()); } return hash.ToString(); } public string GetSHA1(string input) { byte[] data, result; StringBuilder hash = new StringBuilder(); data = Encoding.UTF8.GetBytes(input); using (SHA1 shaM = new SHA1Managed()) { result = shaM.ComputeHash(data); } for (int i = 0; i < result.Length; i++) { hash.Append(result[i].ToString()); } return hash.ToString(); } public string GetMD5(string input) { byte[] data, result; StringBuilder hash = new StringBuilder(); data = Encoding.UTF8.GetBytes(input); using (MD5 shaM = new MD5CryptoServiceProvider()) { result = shaM.ComputeHash(data); } for (int i = 0; i < result.Length; i++) { hash.Append(result[i].ToString()); } return hash.ToString(); } 应该隐藏。 喜欢这张图片

enter image description here

0 个答案:

没有答案