UcoGrid is develped from CGridCtrl, and provides more exciting features.
CGridCtrl is a great ctrl developed by Chris Maunder, which can display and edit tabulated data and support custom defined cell type. The lastest version is Here.
Many developers have created their new cells and developed new feathers for CGridCtrl. such as, merging and unmerging cells, printing and print preview support, etc.
Unfortunately these features have not yet been added to CGridCtrl. My main goal is to combine and improve them into one stable “ucoGrid” control. So far, most of the takses have been complete, and the develop the DrawCell and FormulaCell is in process now. Since there’s no schedule set to accomplish these tasks, it can take a long time. Any suggestion or advice are appreciated.
Changes log
ToDo List
Download
Permalink: Code Library - ucoGrid, a great grid control of MFC
Subcribe the update with Google Reader.
15 Responses
Crias
November 24th, 2006 at 8:48 pm
1good
[Reply]
zhang_zkun
November 27th, 2006 at 7:56 pm
2you are greate,and greate job!!this modified CGridCtrl is suite for me!!thanks a lot!!
[Reply]
zhang_zkun
November 27th, 2006 at 9:49 pm
3CGridCtrl 8232:
pFrameWnd->SetWindowText(_T(”Koay Kah Hoe Print Preview”));
======
CWnd* pWndPopupOwner = this;
while (pWndPopupOwner->GetStyle() & WS_CHILD)
pWndPopupOwner = pWndPopupOwner->GetParent();
CString title=”";
if(pWndPopupOwner)
pWndPopupOwner->GetWindowText(title);
CViewPrintPreview 95:
GetParentFrame()->ShowWindow(SW_HIDE);
=======
CWnd* pWndPopupOwner = this;
while (pWndPopupOwner->GetStyle() & WS_CHILD)
pWndPopupOwner = pWndPopupOwner->GetParent();
if(pWndPopupOwner) pWndPopupOwner->SetFocus();
GetParentFrame()->DestroyWindow();
[Reply]
zhang_zkun
November 27th, 2006 at 10:07 pm
4CGridCtrl 8232:
pFrameWnd->SetWindowText(_T(”Koay Kah Hoe Print Preview”));
======
CWnd* pWndPopupOwner = this;
while (pWndPopupOwner->GetStyle() & WS_CHILD)
pWndPopupOwner = pWndPopupOwner->GetParent();
CString title=”";
if(pWndPopupOwner)
pWndPopupOwner->GetWindowText(title);
pFrameWnd->SetWindowText(title)
CViewPrintPreview 95:
GetParentFrame()->ShowWindow(SW_HIDE);
=======
CWnd* pWndPopupOwner = this;
while (pWndPopupOwner->GetStyle() & WS_CHILD)
pWndPopupOwner = pWndPopupOwner->GetParent();
if(pWndPopupOwner) pWndPopupOwner->SetFocus();
GetParentFrame()->DestroyWindow();
[Reply]
hamo
November 27th, 2006 at 10:13 pm
5hello,zhang_zkun. Is there any bug you found?
[Reply]
zhang_zkun
November 27th, 2006 at 10:33 pm
6I use it in DLL, and I Detected memory leaks.
I think the problem is in CGridCtrl 8214 line;
there we “new CSingleDocTemplate”,but not “delete it”
if we use “GetParentFrame()->DestroyWindow()” at CViewPrintPreview 95 line, It’s OK.
[Reply]
hamo
November 27th, 2006 at 11:10 pm
7oh, It works well. Thank you, zhang_zkun.
[Reply]
Thomas
December 1st, 2006 at 3:58 am
8I suggest small corrections in description:
ex: “But these features have not been add to CGridCtrl. So I want to integer all the features into CGridCtrl and improve some cells. There is no time plan and it may take a long time.”
should look like:
Unfortunately these features have not yet been added to CGridCtrl. My main goal is to combine and improve them into one stable “ucoGrid” control. Since there’s no schedule set to accomplish these tasks, it can take a long time, before it is completed, assuming that it will ever be (by means of constant development).
[Reply]
Hamo’s World » Blog Archive » (zz from MSN)
January 29th, 2007 at 7:52 am
9[...] CodeLib(http://www.ucosoft.com),ucoGrid, a great grid control of MFC,CodeProject comment [...]
Michelangelo
September 12th, 2007 at 10:06 pm
10For me merging doesn’t work when in virtual mode. I’ve tested it with the compiled binary included in the latest ucoGrid.
[Reply]
Wahoo
October 7th, 2007 at 12:31 pm
11Thank you for sharing!
[Reply]
elsvf
December 22nd, 2007 at 5:28 pm
12Congratulations to all for the great software of CGridCtrl
the code placed by Niko Shi to solve the insertcolumn problem would better be place some lines earlier.
in my version
CGridctrl line 4290
////change STARTS here Other place
// fix up column order
m_arColOrder.resize(m_nCols); // Reset Column Order
for (int i = 0; i < m_nCols; i++)
{
m_arColOrder[i] = i;
}
//// change ENDS here
moved to line 4275
after m_nCols++
Reason: When adding the very last column in the grid there was still a problem writing his fixedcolumn title.
replacement of the code solves this.
Probably somebody can add this change.
Many thanks
elsfv
[Reply]
Fly
June 27th, 2008 at 6:29 pm
13It cannot compile in vc2005/2008, Why?
[Reply]
support
July 28th, 2008 at 9:59 am
14@fly:
I have compiled the project in vc2005, and there is no error appears. So what about your error message?
[Reply]
LEE
October 9th, 2008 at 8:10 pm
15How to customize the line around the CELL? For example, I just want to draw top line only. How can this control do this?
Thanks,
[Reply]
RSS feed for comments on this post · TrackBack URI
Leave a reply
ABOUT
Recent Posts
Hot Posts
Creative Commons
Code LibraryCode Library is powered by WordPress, theme byBloggingPro.
Content on this site is licensed under a Creative Commons Attribution 3.0 License.