Wrox Programmer Forums
|
Visual C++ Questions specific to Microsoft's Visual C++. For questions not specific to this Microsoft version, use the C++ Programming forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual C++ section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 10th, 2004, 01:40 PM
nas nas is offline
Registered User
 
Join Date: Dec 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default stringgrid-insert row

hi
i'm a beginner with visual C++ and i'm havin a project with StringGrids and i want to add a row when i write at the last cell and i press the enter key!
all i could write is this! it works whenever i press enter but i want only when i'm at the last cell

char keyString[25];
  keyString[0] = Key;
    if(StringGrid1->Cells[ 8 ][StringGrid1->Row]==StringGrid1->Cells[ 8 ][StringGrid1->RowCount])
      if(Key=='\r')
        InsertRow(StringGrid1, StringGrid1->RowCount);


could somebody help me???





Similar Threads
Thread Thread Starter Forum Replies Last Post
insert row into table stealthdevil Access VBA 11 June 16th, 2007 08:32 AM
insert new row in datagrid sumith ASP.NET 1.0 and 1.1 Professional 1 February 15th, 2007 01:53 PM
Insert Row in Database monika.vasvani ASP.NET 1.0 and 1.1 Professional 1 November 18th, 2006 05:17 AM
Dynamically Insert Row fs22 Javascript How-To 1 July 9th, 2005 04:47 AM
insert row to database heathonbass C# 2 December 19th, 2004 01:02 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.