hi everybody
i have desgined windows application which uses datagrid binding with sql stored procedure and data is being retrieved but i have some problems and i hope u can help me:
1) i need to place checkboxs on one of the grid columns ,and if it is checked a dialog box opens asking user if he is sure , when yes the data of the row in which the checkbox is located is transfered to another table
i.e , the datagrid is filled with employees data and whether they got their salary or not , i need a check box on the salary column when checked the whole data(row) of that employee is transfered to a predefined sql table called "salaried" ..... if the user quires this emplyee data again instead of check box in salary colum a text appears says salaried.
2) how can i prevent my program from hanging when doing query ( i know it is working) and how i can add a (cancel query button) that is not afected with that hanging state. is it multithreading or what
sorry for that long post and thanks for ur time i hope i could find anserws
< xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Datagrid checkbox and update
GlenAtMotorola
Look at the BackgroundWorker component. With this you can bring up your modal dialog and fire off a background task from the modal dialog. The BackgroundWorker will do the work of spinning up another thread and not hanging the UI. See the following article: http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnvs05/html/threadinginvb2005.asp
Joe Stegman
The Windows Forms Team
Microsoft Corp.
This posting is provided "AS IS" with no warranties, and confers no rights.