HI,
Im trying to develop an application similar to Microsoft Outlook. If you open the contacts in Outllook using category view. There is a listing of contacts. Do I need to use a Datagrid for that. And if we click on any of the rows the full details of the record is displayed as a windows form. Can anyone suggest me or provide links as how to do that opening a windows form on clicking a row from a datagrid. I was planning to do like this. Use the datagrid and check for the datagrid double click event and pop up the new form with the respective primary key of the row being set to the form. And once the new form pops up try to bind the data using the primary key and retrieving it from the database. I hope im approaching it the right way.Can someone tell me which event to handle. Is it the double-click event that needs to be handled. I will send the row information to the new form that pops up. I am just not sure which event corresponds to the row clicked in the datagrid. And also how do I get the current row column value (mainly primary key value). I would appreciate ur help
THanx a lot

Create a windows application similar to Microsoft Outlook
Etienne Team System MVP
thanx for ur reply.....I dont want to develop the whole system. I was just playin around with it for my school project. I can't afford to buy it now. Waiting for more replies
Thanx a lot.
ondrejsv
Have fun!
JeffWard
Good luck in whatever you do!
hazz
First, here is a walkthrough on how to create an Outlook style user interface:
<A href=http://msdn.microsoft.com/library/default.asp url=/library/en-us/vbcon/html/vbtskcreatingintricateuserinterfacewithwindowsapplicationobjects.asp>Walkthrough: Creating a Multipane User Interface with Windows Forms</A>
Don't use the double click event. It does not fire as you might expect on the DataGrid control. I would suggest using the DataGrid.MouseUp event. The following line of code will get the value in the specified column (iColumnIndedx) from the current row (user selected):
DataGrid1.Item(DataGrid1.CurrentCell.RowNumber, iColumnIndex)
Much of how you accomplish your goal depends on where you are getting your data. If your DataGrid is bound to a DataSet, then you should get your info from the current position in the dataset's BindingManager. If the DataSet is availble to both Forms, and you bind Form1 datagrid to the dataset and all of Form2 detail controls to the dataset, then moving the postion in the grid on Form 1 would automatically update all of the detail controls in Form 2 via databindings; you will not have to implement any code of your own.
What is the source of data for your datagrid
Tera_Dragon
You're right, when double click, catch this, handle by DoublickEvent, ListView has a property that show current selected item, you can then pass the current item's key to create new instance of your detail form, from the constructor of this detail form, get the key and retrieve required data (from database, for example) ... I hope this helps.