Autor Beitrag
peter876
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 21



BeitragVerfasst: Sa 06.10.12 10:43 
Hallo liebe leute, wie kann ich in der if abfrage erkennen ob ein Datagrid leer ist ?

habs mit if(datagridview1.Items.Count == 0) versucht will leider nicht so ganz wie ich das will :).
Ralf Jansen
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 4708
Erhaltene Danke: 991


VS2010 Pro, VS2012 Pro, VS2013 Pro, VS2015 Pro, Delphi 7 Pro
BeitragVerfasst: Sa 06.10.12 11:18 
Du benutzt wahrscheinlich Databinding. Also schau einfach in die Datenmenge die du an das Grid gebunden hast ob da was drin ist.
peter876 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 21



BeitragVerfasst: Sa 06.10.12 16:36 
Hab es hinbekommen :) hat mich nur um nen zeichen verhaun ^^