DataGridView Sort calls Form.Shown

  • Thread starter Thread starter mahesh.nimbalkar
  • Start date Start date
M

mahesh.nimbalkar

Hi,

I have a form with DataGridView on it. Also I have hooked for Shown
event of Form. Now when I click DataGridView header to sort column,
Shown event of Form also gets called.

I just want not to call Shown event of Form when header is clicked on
DataGridView.

Any idea how to do this?

Thanks,
Mahesh
 
The shown event of the form should only be raised the first time the form is
displayed. what makes you think the event is being raised again?

--
HTH,

Kevin Spencer
Microsoft MVP

Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net
 
Back
Top