|
-
Nov 13th, 2002, 04:51 AM
#1
Thread Starter
Addicted Member
Event that would fire when editing existing values from a datagrid
Hi all,
Is there an event that would be fired when editing existing values from a datagrid?
I've searched but it seems that I couldn't find one.
Thanks,
Marivic
-
Nov 14th, 2002, 09:13 AM
#2
Junior Member
The Edit event, but it is not fired by the datagrid, but by the DataGridTextBoxColumn for each column. You can create a derived class from that, use it and override the edit event:
Protected Overrides Overloads Sub Edit( _
ByVal source As CurrencyManager, _
ByVal rowNum As Integer, _
ByVal bounds As Rectangle, _
ByVal readOnly As Boolean, _
ByVal instantText As String, _
ByVal cellIsVisible As Boolean _
)
...-> here you can put your code that runs before the edit can take place...
MyBase.Edit(...)
End Sub
You can even set event handlers on the TextBox itself (the one that is given by DataGridTextBoxColumn.Textbox) and handle anythhing there...
-
Sep 11th, 2003, 12:56 PM
#3
New Member
and.... what about a boolean column? is there any way to cacth the check/unckech event for the checkbox control?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|