471,327 Members | 2,217 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Index out of bound

Hi,

I am struck with the same probelm
could you please suggest any solution if you found any

Jun 27 '08 #1
3 2195
On May 14, 9:52 am, "ppkm" <u43587@uwewrote:
I am struck with the same probelm
could you please suggest any solution if you found any
As Marc said, tell us what you're doing.

If possible, post a short but complete program demonstrating the
problem:
http://pobox.com/~skeet/csharp/complete.html

Jon
Jun 27 '08 #2
Jon Skeet [C# MVP] wrote:
>I am struck with the same probelm
could you please suggest any solution if you found any

As Marc said, tell us what you're doing.

If possible, post a short but complete program demonstrating the
problem:
http://pobox.com/~skeet/csharp/complete.html

Jon

Hi jon,

When the datagrid has multi rows and the vertical scrollbar hasn't appeared,
if I click the column near the bound or drag horizontal scrollbar, this
exception will be throwed. The trace stack as follows:

at System.Windows.Forms.DataGrid.CreateScrollableRegi on(Rectangle scroll)
at System.Windows.Forms.DataGrid.set_HorizontalOffset (Int32 value)
at System.Windows.Forms.DataGrid.ScrollRight(Int32 columns)\
at System.Windows.Forms.DataGrid.ScrollToColumn(Int32 targetCol)
at System.Windows.Forms.DataGrid.EnsureVisible(Int32 row, Int32 col)
at System.Windows.Forms.DataGrid.set_CurrentCell(Data GridCell value)
at System.Windows.Forms.DataGrid.OnMouseDown(MouseEve ntArgs e)
at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button,
Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage (Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(M essage& m)
at System.Windows.Forms.NativeWindow.DebuggableCallba ck(IntPtr hWnd, Int32
msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchM essageW(MSG& msg)
at
System.Windows.Forms.ComponentManager.System.Windo ws.Forms.
UnsafeNativeMethods+IMsoComponentManager.FPushMess ageLoop(Int32
dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.ThreadContext.RunMessageLoopI nner(Int32 reason,
ApplicationContext context)
at System.Windows.Forms.ThreadContext.RunMessageLoop( Int32 reason,
ApplicationContext context)
at System.Windows.Forms.Application.RunDialog(Form form)
at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
at System.Windows.Forms.Form.ShowDialog()
Jun 27 '08 #3
On May 14, 3:11 pm, "ppkm" <u43587@uwewrote:

<snip>
When the datagrid has multi rows and the vertical scrollbar hasn't appeared,
if I click the column near the bound or drag horizontal scrollbar, this
exception will be throwed. The trace stack as follows:
The stack trace doesn't really help us reproduce the problem.

A short but complete program would *definitely* help us reproduce the
problem.

Jon
Jun 27 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Uwe Mayer | last post: by
10 posts views Thread by Andrew Dalke | last post: by
3 posts views Thread by Oliver Drobnik | last post: by
1 post views Thread by Ashutosh Bhalerao | last post: by
14 posts views Thread by oLgAa25 | last post: by
1 post views Thread by .nLL | last post: by

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.