2013年9月12日星期四

winfrom C # gridview how to achieve the last line together ? ?


neighborhoods
------ Solution ----------------------------------- ---------
fact, many third-party control of the Grid, such as DevExpress 's GridControl, itself together, the segments have been aggregated powerful features .
------ Solution ---------------------------------------- ----
What is your gridview bound ? return a list from a database , you count results via linq statement to become a record, and these records are added to list, and then bind directly to gridView
------ Solution ------------------------------------------ -
winform even simpler, directly in the data source datatable row last one added on it.
refer: http://blog.csdn.net/albert32/article/details/6845106
------ For reference only --------------- ------------------------
http://blog.csdn.net/songkexin/article/details/5569922
http://www.cnblogs.com/chy710/archive/2007/03/27/690251.html
http://blog.163.com/liu_hai_feng @ 126/blog/static/43580500201269253995 /
------ For reference only -------------- -------------------------
refer: http://www.cnblogs.com/chy710/archive/2007 / 03/27/690251.html
------ For reference only -------------------------- -------------
select CASE WHEN (GROUPING (datepart (day, dtae)) = 1) THEN ' Total ' ELSE datepart (day, dtae) END AS date , sum (xxxx), su, (hhhhh), sum (yyyyy) ...... group by datepart (day, dtae) ; with rollup
------ For reference only -------------------------------- -------



pro look is winfrom inside gridView, in gridView no RowDataBound event
------ For reference only ----------------- ----------------------
see is winfrom in the gridView, in gridView no RowDataBound event
------ For reference only ---------------------------------------



is simpler,
------ For reference only ---------------------------------------






Total is out, but there is a problem is that I have this gridView page , if the data is divided into a one , then the total went to the last one , while the first page is not equaled
------ For reference only -------------------------------------- -
see is winfrom in the gridView, no RowDataBound event in gridView  

winform there is no gridview, only datagridview. You did not say clearly blame .

没有评论:

发表评论