拆分总数并显示到datagridview [英] split the total and display in to datagridview

查看:54
本文介绍了拆分总数并显示到datagridview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

课程GS VB SJ RK MS(教职员工)总计





REO 10

AFF 10 < br $> b $ b





教职员工总数是5

总课时数当然是10



当我将总数(10)除以教师人数(5)并给出答案2.



i希望为每个教师显示2个GS,VB,SJ,RK,Ms。



i想要输出如下;



i有一个加载按钮



折叠|复制代码



课程GS VB SJ RK MS(教职员工)总计



REO 2 2 2 2 2 10

AFF 2 2 2 2 2 10







点击加载按钮2必须在datagridview中显示给每个教师。



我已经使用这个公式,总数(10)除以教师数量(5)给出答案2



这个2将显示在每个教师的datagridview中。



以上输出我怎么能用csharp。



注意:这是一个Windows应用程序





我该怎么办?请帮帮我。

谢谢和问候,



Narasiman

Course GS VB SJ RK MS(faculty) Total


REO 10
AFF 10



total number of faculty is 5
total hours of course is 10

when i divide the total(10) by number of faculty (5) and give the answer 2.

i want to display the 2 for each faculty GS,VB,SJ,RK,Ms.

i want the output as follows;

i have one Load Button

Collapse | Copy Code

Course GS VB SJ RK MS(faculty) Total

REO 2 2 2 2 2 10
AFF 2 2 2 2 2 10



when click the Load button 2 has to displayed in datagridview for each faculty.

for that i have using this formula, total (10) is divide by number of faculty(5) gives the answer 2

this 2 will display in datagridview for each faculty.

for th above output how can i do using csharp.

Note: it is a windows application


how can i do? please help me.
Thanks & regards,

Narasiman

推荐答案

创建一个Windows窗体应用程序

添加一个datagridview

检索你的数据

根据你的要求对数据进行计算

格式化数据以满足您的要求

将数据绑定到datagridview。
Create a windows forms application
Add a datagridview
retrieve your data
do the calculation on the data as per your requirements
format the data to meed your requirements
bind the data to the datagridview.


这篇关于拆分总数并显示到datagridview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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