Make GridView look like a textbox/savebutton - asp.net

using Visual.Web.Developer.2010.Express;
using SQL.Server.Management.Studio.2008.R2;
N00b here,
I have a GridView, but I want to make it look like a textbox/savebutton rather than a table with an edit/update lable next to it. I'm not really looking for "teh codez", but is this even possible? Is there a more practical way of doing this? Please help!
Thanks in advance

I have a GridView, but I want to make it look like a
textbox/savebutton rather than a table with an edit/update lable next
to it. I'm not really looking for "teh codez", but is this even
possible? Is there a more practical way of doing this? Please help!
Well, since you aren't looking for the code, let me just point you in the direction of TemplateColumn and EditItemTemplate. They should get you there.
You can put whatever controls you want inside a template column.

Related

CheckBox: distinguish between box and label

I'm looking for a way to determine the exact source of a click on a CheckBox. I want to know if the click happened on the box itself or on the text.
event.getSource() doesn't help and I also tried some things on the CheckBoxSkin, but without success.
Is there a good way to do this?
event.getTarget() might help you.

several <ItemTemplate> in one ListView

I saw a lot of examples of using ListView,but couldn't found simple,understandable example of using two (or more) ItemTemplates in one ListView (if it possible).I want to define them on .aspx page or to make programmatically,and,depending on my needs choose one of them (different templates for different binding data).Any idea? Thanks.
I hope this would help you achieve what you want?
http://blogs.msdn.com/b/mikeormond/archive/2008/07/26/dynamically-loading-listview-templates.aspx
Also go through this post to have some insight as well
http://forums.asp.net/t/1699218.aspx/1?ListView+ItemCommand+event+not+working+with+Dynamic+Templates
You can make one <ItemTemplate>with several panels inside, and then in code beind you make only one of them visible.

Please give me a simple code : How to add CheckBox in ComboBox?

Please Help me Out.
I have tried a lot but i can't do.
please give simple code
How to add CheckBox in ComboBox?
Perhaps you mean something like this (but it's not a combo box)

Flash Builder:How to sort spark datagrid column when user clicks header?

I am trying to sort a spark datagrid column when users click the header of individual column. I have searched google but haven't found any good tutorials. I would appreciate if anyone here can help me out. Thanks a lot.
Did you set sortableColumns to true? Cause actually it should work right out of the box if that property is set.

How can I build an infinitely recursive listview control?

Not sure I'm asking the right question, but it's a start. I have a user control with a ListView and, ideally, I would like to nest this same control inside of the ListView to provide recursion. This would behave somewhat like a TreeView with child nodes.
This might be a monumentally bad idea. :) In fact, I feed like MSFT is pointing me in that direction, because when I try this I am told that I can't do it.
So, how would you do this? What's the right way?
Sounds like You do need a TreeView after all, but need more functionality than it provides by default... How about extending the TreeNode/TreeView?
Here is an example for that:
http://www.codeproject.com/KB/tree/DropDownTreeView.aspx
Or you can extend the ListView, in fact, this article shows how to create a TreeListView which sounds very similar to what you're trying to do:
http://www.codeproject.com/KB/list/extendedlistviews.aspx
Either way, it sounds like you need a custom control, based on the TreeView and ListView.
Good Luck!

Resources