By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,247 Members | 1,224 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,247 IT Pros & Developers. It's quick & easy.

DataGrid setting DataSource setting focus to grid

P: n/a
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
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.