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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top