Click here to Skip to main content
15,910,661 members
Please Sign up or sign in to vote.
4.00/5 (2 votes)
See more:
Hi friends,

I have a Grid which shows no's of employee in it where one column has a check box and other are employee details column.

so when i check respective employee check box, I should be able to fill their information one by one and update in a form designed below grid and at last the record to be updated in grid.

Please help

Thanks and regards
Posted
Updated 21-Dec-11 5:47am
v3
Comments
sriman.ch 15-Dec-11 23:44pm    
When do you want to fill the information on check =box checked event or is there any button to fill the information....?
suhailnoorpawane 16-Dec-11 0:20am    
Yes there is button Update which when click the record in the form should update and then new employee is fetch and shown so that his records can be filled and update again. This should be continuous and there can be multiple employee selected so one by one it should come update and next record fetch like this
Al Moje 16-Dec-11 0:19am    
I am curious where we should fill such info. Should we create a container or just fill it in check box?
suhailnoorpawane 16-Dec-11 0:21am    
in the textboxes
sriman.ch 16-Dec-11 0:37am    
on click of update you want to fecth records one by one and fill them in the respective textboxes and update them right ?....I am assuming textboxes are on the form itself not in any gridview or some databound control ...?

You can try with for loop like this..
C#
foreach (control ctrl in this.controls)
{
    if (ctrl is checkbox)
    {
        if (ctrl.checked == true)
        {
             //Save grid data
        }
    }
}
 
Share this answer
 
done thansdk you very much sds
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900