Hi
Your grouping is not right like this.
What you want to do is to just list out your query without doing any grouping.
Here is an article wich might help
http://aspalliance.com/1268_CodeSnip...ew_Control.all...
User Profile
Collapse
-
I have been "all over" the Internet. Can't seem to find a way to add textbox to gridview TempleteField from code behind. Think I have to find another way of doing this.Leave a comment:
-
Ok, thank you very much for your help. I will find out more about template fields.
Have a nice day.
TomasLeave a comment:
-
The textboxes are not available in my SaveValues method it seems.
I have tried out everything I can think of with the GridView.FindCo ntrol. I always get the same error.
So, I think my problem is that the TextBoxes are not available in my SaveValues method.
Puh :)Leave a comment:
-
In the sub where I make the datatable with all rows and columns, but not the textboxes. I create the textbox on RowDataBound and fill it up like this:
Code:e.Row.Cells(j).Controls.Add(xTextBox) Dim dsAttributter As DataSet = New DataSet dsAttributter = objStatus.GetDataSet("SELECT attVerdi FROM xtemp_funkogkaptabell WHERE ProdID = '" & e.Row.DataItem("ProdID") &
Last edited by Frinavale; Apr 21 '09, 02:16 PM. Reason: Added code tags. Please post code in [code] [/code] tags.Leave a comment:
-
Thank you for your answare Frinny.
I create my columns (dynamically) and records to a datatable. Then I fill the datatable with a query. Then on GridView.RowDat aBound I fill some textboxes with e.Row.Cells(j). Controls.Add(te xtbox). I can also assign a value to these textboxes. So far so good.
Then I have a button outside the gridview witch fires SaveValues Sub.
I use Gridview.Findco ntrol(testbox) to try to retrieve...Leave a comment:
-
Hi agamoto
Witch solution did you move to? I am having the same problem.
TomasLeave a comment:
No activity results to display
Show More
Leave a comment: