471,049 Members | 1,824 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

DataGrid setting DataSource setting focus to grid

Hi,
I have a Windows Forms Custom DataGrid, which is put in a
usercontrol, which on setting DataSource is setting focus
to grid. The call stack for setting the focus is as
follows. This is not happened always whenever DataSource
is set, only called sometimes, in a series of setting
DataSource, I could get this setting focus only one time .
Can anybody help me how to stop this one.

system.windows.forms.dll!
System.Windows.Forms.Control.FocusInternal() + 0x4c bytes

system.windows.forms.dll!
System.Windows.Forms.DataGrid.CommitEdit() + 0xd8 bytes
system.windows.forms.dll!
System.Windows.Forms.DataGrid.EndEdit() + 0x48 bytes
system.windows.forms.dll!
System.Windows.Forms.DataGrid.UpdateListManager() + 0x28
bytes
system.windows.forms.dll!
System.Windows.Forms.DataGrid.Set_ListManager
(System.Object newDataSource = {System.Data.DataTable},
string newDataMember = "", bool force = false, bool
forceColumnCreation = true) + 0xeb bytes
system.windows.forms.dll!
System.Windows.Forms.DataGrid.Set_ListManager
(System.Object newDataSource = {System.Data.DataTable},
string newDataMember = "", bool force = false) + 0x1c bytes

system.windows.forms.dll!
System.Windows.Forms.DataGrid.set_DataSource(Syste m.Object
value = {System.Data.DataTable}) + 0x190 bytes
baseui.dll!
Viper.UI.Base.DataGridEx.CustomDataGrid.LoadData
(System.Object dataSource = {System.Data.DataTable}) Line
4241 C#

Nov 15 '05 #1
0 1594

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Bryan Masephol | last post: by
reply views Thread by Mauro | last post: by
3 posts views Thread by TT (Tom Tempelaere) | last post: by
5 posts views Thread by John Richardson | last post: by
6 posts views Thread by Ron L | last post: by
5 posts views Thread by HS1 | last post: by
10 posts views Thread by Kejpa | 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.