|
-
Feb 26th, 2003, 03:48 PM
#1
Thread Starter
Lively Member
DataGrid - Some questions
Hi all!
I've got some question about DataGrid:
- Why when I type the "+" and the "-" of the kyypad they do not appear into the cell?
The DG losts the focus and nothing else happen.
- Can I eliminate the "(null)" text onto the new row?
- Can I know the exact Location of a cell on the screen? How?
Thank you!
-
Feb 26th, 2003, 09:47 PM
#2
Addicted Member
1.I try it on my datagrid the - + sign still appear, check your code
2.Set the DatagridTextboxColumn Property NullText=vbnullstring.empty
3. Datagrid.GetCellBounds(0, 0).X()
-
Feb 27th, 2003, 03:35 AM
#3
Frenzied Member
+ and - of keypad does not work on my datagrids either. I searched and some has suggested this:
VB Code:
Protected Overrides Function ProcessCmdKey(ByRef msg As
System.Windows.Forms.Message, ByVal keyData As System.Windows.Forms.Keys) As Boolean
' Grid cannot process keypad subtract key
If keyData = Keys.Subtract Then
keyData = Keys.OemMinus
SendKeys.Send("-") ' This *seems* to do the trick???
Return True
End If
MyBase.ProcessCmdKey(msg, keyData)
End Function
-
Feb 27th, 2003, 03:07 PM
#4
Thread Starter
Lively Member
+ and - of keypad does not work on my datagrids either. I searched and some has suggested this:
VB Code:
SendKeys.Send("-") ' This *seems* to do the trick???
This seems to work, but the "+" still disappear 
Where did you find that info?
Thanx
-
Feb 27th, 2003, 04:25 PM
#5
Frenzied Member
I searched MSDN news group using Google groups
http://groups.google.com
or
http://www.deja.com (same as previous)
I couldnt do that trick for '+'
see here it defines a method you may want to apply.
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
|