Wrox Programmer Forums
|
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 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 February 4th, 2005, 07:54 AM
Authorized User
 
Join Date: Oct 2004
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to dotnetprogrammer
Default Datagrid problem

--------------------------------------------------------------------------------

Hi

Please see the following code. looks very simple.

private: System::Void jobGrid_MouseDown(System::Object * sender, System::Windows::Forms::MouseEventArgs * e)
{
if(e->Button==MouseButtons::Left)
{
groupBox1->Focus();
}
}

GRID IS INITIALISED AS FOLLOWS

jobListTable = new DataTable("JobListTable");
DataGridColumnStyle* TextCol;
DataGridTableStyle* ts1 = new DataGridTableStyle();
ts1->MappingName = S"JobListTable" ;
ts1->RowHeadersVisible = false;
ts1->BackColor = Color::Ivory;
ts1->AlternatingBackColor = Color::Beige;
ts1->HeaderBackColor = Color::Black;
ts1->HeaderForeColor = Color::White;
// First Column - Serial Number
myDataColumn = new DataColumn();
myDataColumn->DataType = System::Type::GetType("System.String");
myDataColumn->ColumnName = "ID";
myDataColumn->ReadOnly = false;
myDataColumn->Unique = true;
myDataColumn->AutoIncrement = false;
//myDataColumn->AutoIncrement = true;
//myDataColumn->set_AutoIncrementSeed(1);
//style setup
TextCol = new DataGridTextBoxColumn();
TextCol->MappingName = S"ID";
TextCol->HeaderText = S"ID";
TextCol->Width = 25;
TextCol->Alignment = HorizontalAlignment::Center;
ts1->GridColumnStyles->Add(TextCol);
// add it
jobListTable->Columns->Add(myDataColumn);


NOW THE PROBLEM THAT I HAVE HERE IS THAT WHEN I AM RUNNING MY APPLICATION IN WINDOWS XP THEN IT IS WORKING FINE AND IF I RUN IT IN WINDOWS 2000 OR IN ANY OTHER VERSION THEN WHEN WE CLICK ON THE GRID THEN GRID ITEMS ARE CHENGED TO TEXTBOX HAVING CONTEXT MENU

undo
cut
copy.............


I want my menu to be there instead of this menu

help me please

dotnet
__________________
dotnet
 
Old February 17th, 2005, 05:11 AM
Authorized User
 
Join Date: Oct 2004
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to dotnetprogrammer
Default

please help me guys ..................


dotnet





Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with datagrid Shishir ASP.NET 1.0 and 1.1 Professional 1 January 6th, 2007 09:01 AM
Datagrid Problem monika.vasvani ASP.NET 1.0 and 1.1 Professional 1 December 5th, 2006 03:09 AM
DataGrid Problem anujrathi VB.NET 2002/2003 Basics 2 June 15th, 2006 02:18 AM
DataGrid Problem anujrathi ASP.NET 2.0 Basics 1 June 12th, 2006 03:52 PM
datagrid problem Leonmex Access VBA 1 November 26th, 2004 03:03 PM





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