有如下表格,没办法画,只好模拟一下了
------------------------------------------
|         | 阿呆,阿哈哈                   |
|    A    |                               |
|_________________________________________
|         | 变化,便衣                     |
|    B    |                               |
|_________________________________________
|         | 蔡见呀                        |
|    C    |                               |
__________________________________________数据库里有一张表,两个字段,一个为人名,另一个为人名第一个汉字的拼音第一个字母
我想用以上表格的形式将数据呈现出来请高人指点!

解决方案 »

  1.   

    这个表怎么也画不好看啊|---------|-------------------------------|
    |         | 阿呆,阿哈哈                   |
    |    A    |                               |
    |_________|_______________________________|
    |         | 变化,便衣                     |
    |    B    |                               |
    |_________|_______________________________|
    |         | 蔡见呀                        |
    |    C    |                               |
    |_________|_______________________________|
      

  2.   

    可以如下方式:
    首先是一个外面的DataGrid,它是一个N行两列的
    它的第一列存放汉字的拼音第一个字母
    在在它的第二列插入一个DataGrid控件取出相应的人名
      

  3.   

    http://dotnet.aspx.cc/ShowDetail.aspx?id=54F4C732-AAE2-4135-FB1B-7B4B613BAA33
      

  4.   

    http://www.chinamp3.com/mainland/ml_male.php
    其实就是想问这个效果是如何实现的
      

  5.   

    比如字段人名为man,拼音首字母我manAB通过select count(*) from (select distinct manAB from tablename )a
    得到行数在依次根据manAB 的值查询man,比如此时manAB=A
    通过 select man from tablename where manAB>='A' and manAB<='A'