Exemplo n.º 1
0
        public static string Columncount(string tablename)
        {
            var cocount = new ListView();

            ClassPublicclass.Filllistnoid(tablename);  //populate listview and ignore the ID column
            var colcount = cocount.Items.Count.ToString();

            return(colcount);
        }