473,394 Members | 1,748 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Appending new entry to DXperiance data grid

Sl1ver
196 100+
Here's my problem, the data grid already has a button to "append" a new entry, what i want to do is create a button in cutom tool panel and give it a function to "append" a entry. i've tried

gcAssetUsers.EmbeddedNavigator.Buttons.DoClick(gcA ssetUsers.EmbeddedNavigator.Buttons.Append);
that doesn't work! can anyone help?
Mar 25 '09 #1
1 1443
tlhintoq
3,525 Expert 2GB
I'm not a datagrid guy, or VB... but I can give you a concept that should do it.

Don't tie one UI item such as your Tool Pallet to another UI item such as where the datagirid is, so tightly. It makes the Tool Pallet something you will put a lot of work into yet can't be re-used on the next project.

Create an event in the tool pallet for "Append"
Have the class/form with the datagrid subscribe to the tool pallet's event(s)

When the datagrid's form "hears" the tool pallet's event, it can then react however you like. (As can other classes that subscribe to the event such as a logging class)


Second tip: Don't have all the work functionality built right into the button's OnClick event. That just makes it hard to call from other places because you have to make the object & arguments of the Button.OnClick call all the time.
Instead make a method like "DoAppend()", and have the button method call it. At first this feels like an added unneeded step - but you'll quickly see how helpful it can be.
Mar 25 '09 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Clara | last post by:
Hi, can somebody help me,..I have an assignment due next week but now I'm stuck with this problem.... I tried to get values from entry widget using the widgetcontrolvariable.get(),..but it seems...
0
by: BW | last post by:
Please ignore the rest of the code, except for the highlighted part (or the line 'ent1=Entry(topf, width=25)' to line 'ent1.insert(INSERT, wrong, if you cannot see the color). You can copy this into...
2
by: IMRAN SAROIA | last post by:
Hi! I am from Visual FoxPro Community and used to develope data entry forms on many sides on Data Grid. But the Grid in Dot Net is quite different than in VFP as long as interfaces are...
1
by: oasd | last post by:
I'm having difficulty appending data. I have an import macro (using the Transferspreadsheet function) to import data from an excel spreadsheet (located in a USB attached to the pc) to an access...
2
by: Randy Fraser | last post by:
Is anyone using a datagrid for data entry? All I am trying to do is create a grid where the user enters an Item Number and the rest of the grid displays the information such as Description. ...
2
by: Stephan (Germany) | last post by:
Hello, maybe this qustion sounds silly but in VS2005, I'm looking for the same possibilty to entry data for a predefined XML schema in grid view. In VS2003, you were able to do it if you...
0
by: Marek S. | last post by:
Hi, I am new in Python and I have no experience in object-oriented programming. I want to make an easy GUI for my application. What is my problem? I have the data-file like this (file...
4
by: Jules48 | last post by:
I store comprehensive details of customers' "transactions" in Access (2000). At the moment, I (or my staff) duplicate entry of the information in an Excel spreadsheet which we use to extract stats...
3
by: HSXWillH | last post by:
I've looked through the site and not found what I'm looking for here. I am not code-versed or anything like that so my skills are rudimentary at best. I'm using Access 03 on a Windows Vista...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.