PC Review


Reply
Thread Tools Rate Thread

DataGrid setting DataSource setting focus to grid

 
 
Shravan
Guest
Posts: n/a
 
      10th Nov 2003
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(System.Object
value = {System.Data.DataTable}) + 0x190 bytes
baseui.dll!
Viper.UI.Base.DataGridEx.CustomDataGrid.LoadData
(System.Object dataSource = {System.Data.DataTable}) Line
4241 C#



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting focus to a combobox in a grid mfleet1973@yahoo.ca Microsoft VB .NET 2 24th Jul 2006 03:13 PM
Setting focus to a particular cell in DataGrid sailu Microsoft C# .NET 3 12th Jan 2006 09:03 AM
setting datagrid datasource in design to table on vs 2005 beta 2? Kimberly Microsoft Dot NET Compact Framework 0 16th Aug 2005 10:39 PM
Refresh datagrid without setting datasource to nothing and initialize again AA Microsoft VB .NET 2 3rd Aug 2004 04:13 PM
Setting grid datasource within thread while table(source) is being filled... VM Microsoft C# .NET 2 19th May 2004 03:41 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:08 AM.