473,796 Members | 2,525 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

datagrid Get "F3" function

My purpose is When the user press "F3" in specified column, i need to put
specified data in that column
Now, I can get "F3" by using [Protected Overrides Function
ProcessCmdKey(B yRef msg As System.Windows. Forms.Message, ByVal keyData As
System.Windows. Forms.Keys) As Boolean ]

BUT I don't know how to put the data in that textbox,
I try Dim xx As DataRow =
dtInvCharges.Ro ws(dgInvCharges .CurrentRowInde x)
xx.Item("remark ") = "F3 Command process"

it returns error.
Anybody got some idea ? Thanks a lot


Nov 21 '05 #1
3 1380
Hi,

DataGrid1.Item( DataGrid1.Curre ntCell) = "Test"

Ken

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

"Agnes" <ag***@dynamict ech.com.hk> wrote in message
news:eZ******** *****@TK2MSFTNG P11.phx.gbl...
My purpose is When the user press "F3" in specified column, i need to put
specified data in that column
Now, I can get "F3" by using [Protected Overrides Function
ProcessCmdKey(B yRef msg As System.Windows. Forms.Message, ByVal keyData As
System.Windows. Forms.Keys) As Boolean ]

BUT I don't know how to put the data in that textbox,
I try Dim xx As DataRow =
dtInvCharges.Ro ws(dgInvCharges .CurrentRowInde x)
xx.Item("remark ") = "F3 Command process"

it returns error.
Anybody got some idea ? Thanks a lot

Nov 21 '05 #2
Ken, It doesn't work ar.
Do I need to declare something first ?
dim xx as datarow = ctype( DataGrid1.Item( DataGrid1.Curre ntCell),datarow ) ??
xx.item("remark ") = "Test"
"Ken Tucker [MVP]" <vb***@bellsout h.net> ¦b¶l¥ó
news:%2******** **********@TK2M SFTNGP15.phx.gb l ¤¤¼¶¼g...
Hi,

DataGrid1.Item( DataGrid1.Curre ntCell) = "Test"

Ken

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

"Agnes" <ag***@dynamict ech.com.hk> wrote in message
news:eZ******** *****@TK2MSFTNG P11.phx.gbl...
My purpose is When the user press "F3" in specified column, i need to put
specified data in that column
Now, I can get "F3" by using [Protected Overrides Function
ProcessCmdKey(B yRef msg As System.Windows. Forms.Message, ByVal keyData As
System.Windows. Forms.Keys) As Boolean ]

BUT I don't know how to put the data in that textbox,
I try Dim xx As DataRow =
dtInvCharges.Ro ws(dgInvCharges .CurrentRowInde x)
xx.Item("remark ") = "F3 Command process"

it returns error.
Anybody got some idea ? Thanks a lot


Nov 21 '05 #3
I solve my stupid problem
dgInvCharges.It em(dgInvCharges .CurrentCell.Ro wNumber, 2) =
Me.objChgResult .pchgName

"Agnes" <ag***@dynamict ech.com.hk> ¦b¶l¥ó
news:uI******** ******@TK2MSFTN GP09.phx.gbl ¤¤¼¶¼g...
Ken, It doesn't work ar.
Do I need to declare something first ?
dim xx as datarow = ctype( DataGrid1.Item( DataGrid1.Curre ntCell),datarow ) ?? xx.item("remark ") = "Test"
"Ken Tucker [MVP]" <vb***@bellsout h.net> ¦b¶l¥ó
news:%2******** **********@TK2M SFTNGP15.phx.gb l ¤¤¼¶¼g...
Hi,

DataGrid1.Item( DataGrid1.Curre ntCell) = "Test"

Ken

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

"Agnes" <ag***@dynamict ech.com.hk> wrote in message
news:eZ******** *****@TK2MSFTNG P11.phx.gbl...
My purpose is When the user press "F3" in specified column, i need to put specified data in that column
Now, I can get "F3" by using [Protected Overrides Function
ProcessCmdKey(B yRef msg As System.Windows. Forms.Message, ByVal keyData As System.Windows. Forms.Keys) As Boolean ]

BUT I don't know how to put the data in that textbox,
I try Dim xx As DataRow =
dtInvCharges.Ro ws(dgInvCharges .CurrentRowInde x)
xx.Item("remark ") = "F3 Command process"

it returns error.
Anybody got some idea ? Thanks a lot



Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

42
2629
by: Alan McIntyre | last post by:
Hi all, I have a list of items that has contiguous repetitions of values, but the number and location of the repetitions is not important, so I just need to strip them out. For example, if my original list is , I want to end up with . Here is the way I'm doing this now: def straightforward_collapse(myList):
1
3949
by: Sugapablo | last post by:
In the following file below, I want it to return itself as a Rich Text Format file that populates the variables with data from the database. I set up the mime types and the filename accordingly. Now, when I call this page on a Linux system, using the Mozilla browser, it opens a dialog, asks me whether I want to save it or open it, and if I open it, opens it as test.rtf, just like I tell it to in the Content-Disposition header.
1
4233
by: Michael Bourgon | last post by:
Howdy. I'm trying to build a query that will take an Excel file and pull a few rows of data from a particular sheet. I'm having a problem with my WHERE clause - I can can tell it to import WHERE a field matches a value, or WHERE the field matches another value, but not both. I've tried bunches of different variations, but can't get it to work. Is there any way to do this? Works: select F1,F2,F3,F4,F5,F6,F7,F8,F9,F10,F11,F12
5
1630
by: Jan Danielsson | last post by:
Hello all, I have written a simple whiteboard application. In my application, I want to be able to set draw attributes. This part works. I have a dictionary object which contains stuff like: self.attr = ... self.attr = ... Now, the problem is that I want to be able to store attributes in a list so they'll be easily accessed using the function keys. I.e. I have
2
2378
by: Carl Tribble | last post by:
Is there any way to reliably catch KeyUp events for Function keys in particular while inside a datagrid? I have a form with KeyPreview=True and I am using the Form.KeyUp event to handle several function keys (F5, F6, etc.) The problem is I have a datagrid on this form and it seems whenever the datagrid has the focus, it consumes most of the key events without passing them on to me. I have tried using a DataGridTextBox control, which...
1
2163
by: Agnes | last post by:
I design my own datagrid which can turn Enter into 'Tab', BUT I cannot detect the user keypress 'F3' , Why I try to detect keyCode, it only effect on 'keydown' , 'keyup' , but it cannot get my keypress 'FX' Anybody got idea ? thanks a lot Protected Overrides Function ProcessKeyPreview(ByRef m As System.Windows.Forms.Message) As Boolean Dim keyCode As Keys = CType(m.WParam.ToInt32(), Keys) And Keys.KeyCode
3
1929
by: shifty shaker | last post by:
I've modified sql text and now i'm getting a syntax error that I cannot figure out....anyone? error occurs at the Insert Into line but the entire function is given in case you need it. --- Function ThisIs() Dim TDate As Date, C1 As Integer, StrSQL As String, TypeAttend, RecDetect If Not IsNull(Me.scrStudent) Then C1 = 1: TDate = Me!
8
1112
by: John Henry | last post by:
How do I determine is something a function? For instance, I don't want to relying on exceptions below: def f1(): print "In f1" def f3(): print "In f3"
9
2306
by: =?Utf-8?B?TmVpbEdvdHQ=?= | last post by:
I am trying to format a decimal number such as 0.0567 but forgot how to do formatting in C#. I tried the old C format escape sequence "\8.3f" the old C style but does not work. example: dMyNumber.tostring("\8.3f"); Can some one refresh how to do this? Thanks
0
9679
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9527
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10223
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10172
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9050
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7546
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6785
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4115
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.