Ask a Question related to ASP.NET Data Grid Control, Design and Development.
-
Marius Horak #1
Madness, I call it madness
Maybe it's me who is mad but...
I have a windows application with a datagrid.
On pressing F5 (when the grid or any grid's cell has a focus) I would like
to refresh data (running my GetGridData procedure).
I added the KeyDown event to the grid:
private void MyGrid_KeyDown(object sender, System.Windows.Forms.KeyEventArgs
e)
{
if (e.KeyCode == Keys.F5)
{
MessageBox.Show("refresh");
GetGridData();
}
}
I press F5 and nothing happens. I've changed F5 to F6 and it works - sort
of. It works only when the focus is on the Header.
When the focus is on any of the cells - nothing. I've searched the Net and
I've found the following VB code
.................................................. ........................
Dim X As Integer
For X = 2 To DataGrid1.Controls.Count - 1
AddHandler DataGrid1.Controls(X).KeyPress, AddressOf
Ctrls_KeyPress
Next X
Scot Rose, MCSD
Microsoft Visual Basic Developer Support
.................................................. ........................
Converted this to C# and when I press F6 when a cell has a focus the event
is being executed. Great.
I press F6 again and now then event would be executed twice.
Press F6 again and now event is fired 4 times.
Again - 8 times, again 16 - times.
Madness!!!
How to make F5 working within a grid?
MH
Marius Horak Guest
-
autostretch madness
so ive been using DW fora few years and all of a suddenive come across this madness wheni started using DW04, autostretch on the height (100%) code ... -
Array MADNESS
Have I gone crazy? <cfscript> arr=arrayNew(2); arr = 'Col 1 Row 1'; arr = 'Col 1 Row 2'; arr = 'Col 2 Row 1'; arr = 'Col 2 Row 2'; arr = 'Col... -
addcamera madness!
can someone please please explain to me why this gives an "object in handler not found "error when i try and run it with the add camera command... -
flv -> swf madness
i've created a flv from a quicktime movie and exported it out as a swf then i load that swf into a movieclip and everything works fine except that... -
Forum madness
I just set up a php site. When I click the Forum link. the Forum sometimes open perfectly normal Other times is open as scrambled text LIKE THIS,... -
Marius Horak #2
Re: Madness, I call it madness
OK, solved the problem with 1,2,4,8,16 ...
But F5 still won't work.
MH
Marius Horak Guest
-
Raterus #3
Re: Madness, I call it madness
wrong forum, this is about the ASP.NET DataGrid
"Marius Horak" <someone@europe.eu> wrote in message news:uwpSOniSEHA.3224@TK2MSFTNGP10.phx.gbl...> OK, solved the problem with 1,2,4,8,16 ...
>
> But F5 still won't work.
>
> MH
>
>Raterus Guest



Reply With Quote

