如何在windows apllciation中使用csharp合并数据网格视图中的行 [英] how to merge the rows in data grid view using csharp in windows apllciation

查看:74
本文介绍了如何在windows apllciation中使用csharp合并数据网格视图中的行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

输出如下;





日期会议GS RK Mv MS CMK CNN VRV GS

7 / 1/2013 1 coursename(combobox)

7/1/2013 2

7/1/2013 3

7/1/2013 4





但我想在数据网格视图中输出i运行时屏幕如下;



日期会议GS RK Mv MS CMK CNN VRV GS



7/1/2013 1

2

3

4



日期不应该重复,它应该与行合并并给出一个日期如2013年7月1日。



如何do.please发送的代码。

解决方案
合并DGV不支持行。您必须更改数据的检索方式,并在检索数据时确保数据采用此形式(单行),或者找到支持根据需要合并行的网格组件。


Output as follows;


Date Session GS RK Mv MS CMK CNN VRV GS
7/1/2013 1 coursename(combobox)
7/1/2013 2
7/1/2013 3
7/1/2013 4


But i want the output i run time screen as follows in data grid view;

Date Session GS RK Mv MS CMK CNN VRV GS

7/1/2013 1
2
3
4

the date should not be repeated,it should be merge with rows and gives a single date as 7/1/2013.

how to do.please send the code.

解决方案

Merging rows is not supported by the DGV. You either have to alter how the data is retrieved and make sure the data is in this form (a single row) when you retrieve it, or find a grid component that supports merging rows as you want.


这篇关于如何在windows apllciation中使用csharp合并数据网格视图中的行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆