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#