]> git.saurik.com Git - wxWidgets.git/commitdiff
add a numeric column test
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 6 Jul 2008 02:20:21 +0000 (02:20 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 6 Jul 2008 02:20:21 +0000 (02:20 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54503 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/grid/griddemo.cpp

index bd254bfdd4b4aea360027c24730e4a9b2db9ea54..814f3918a6eb1712be6c93d5af5ba582aa084685 100644 (file)
@@ -345,6 +345,11 @@ GridFrame::GridFrame()
     grid->SetCellValue(1, 7, _T("1415"));
     grid->SetCellValue(2, 7, _T("12345.67890"));
 
     grid->SetCellValue(1, 7, _T("1415"));
     grid->SetCellValue(2, 7, _T("12345.67890"));
 
+    grid->SetColFormatNumber(8);
+    grid->SetCellValue(0, 8, "17");
+    grid->SetCellValue(1, 8, "0");
+    grid->SetCellValue(2, 8, "-666");
+
     const wxString choices[] =
     {
         _T("Please select a choice"),
     const wxString choices[] =
     {
         _T("Please select a choice"),