ultraman
Well-known member
Ok, Ill try to be brief and clear... which wont be easy.
I have a custom control Grid. This control contains Lines that contains a Label and a TextBox. I can add as many Lines as I want through the AddItem method.
My problem is that those are filled in the load event and since in the wonderful .NET world, the load event seems to take place before the Button_Click event, I always loose all new data written in the TextBoxes. If I dont reload my Grid (by tetsing the IsPostBack), I dont get anything, since there no Lines in my Grid anymore...
What I need is a Grid with ALL the regions (States for exemple) that comes from the DB with an editable TextBox for each one so they can enter the number of members in each region. I join you an image of what it looks like. I can fill it alright, but theres no way I can save the modified data.
I dont want user having to click an Edit Button (like the standard DataGrid behavior) for each row, it would be crazy !
I have a custom control Grid. This control contains Lines that contains a Label and a TextBox. I can add as many Lines as I want through the AddItem method.
My problem is that those are filled in the load event and since in the wonderful .NET world, the load event seems to take place before the Button_Click event, I always loose all new data written in the TextBoxes. If I dont reload my Grid (by tetsing the IsPostBack), I dont get anything, since there no Lines in my Grid anymore...
What I need is a Grid with ALL the regions (States for exemple) that comes from the DB with an editable TextBox for each one so they can enter the number of members in each region. I join you an image of what it looks like. I can fill it alright, but theres no way I can save the modified data.
I dont want user having to click an Edit Button (like the standard DataGrid behavior) for each row, it would be crazy !