GridView + .net 2.0
-
how to bind datafield in gridview which is invisible in gridview. like- I'm taking 3 fields in gridview: RestID, RestName, Description but Description will be visible="false" I want to take all value from 3 fields in text boxes. thanks
You get the best out of others when you give the best of yourself.
-
how to bind datafield in gridview which is invisible in gridview. like- I'm taking 3 fields in gridview: RestID, RestName, Description but Description will be visible="false" I want to take all value from 3 fields in text boxes. thanks
You get the best out of others when you give the best of yourself.
From Aspx page you can do that :)
Best Regards ----------------- Abhijit Jana View My Latest Article :- SpyNet : Your Network Spy "Success is Journey it's not a destination"
-
how to bind datafield in gridview which is invisible in gridview. like- I'm taking 3 fields in gridview: RestID, RestName, Description but Description will be visible="false" I want to take all value from 3 fields in text boxes. thanks
You get the best out of others when you give the best of yourself.
something that change in gridview, you can assign value directly to boundfield and set the boundfield.visible = false then you want to catch that value. well, it happened while i was at project. you have to put a control to templatefield (in this case hiddenfield is great), assign it with data like example below. when you want to get the value, you have to use FindControl method, catch the control, get the value. ex: '<%#DataBinder.Eval(Container.DataItem, "PolicyNo")%>' hope it helps tell me if my writing's confusing