I have a dropdown list in a gridview field. The DataValueField for the ddl is an 8 digit item code. The text to display through will be quite longer, 40-60 characters because it will combine the item code and item name into a single string. I don't want the dropdownlist field to be that wide though, only what is displayed when the ddl is selected.In Access you can set the width property of the list to display wider than the field itself. Is there that capability in ASP.NET and if so where do I find it?
I have an <asp:ListView> but for some reason the LayoutTemplate section does not show when the list is empty, although the <EmptyDataTemplate> section shows. The LayoutTemplate contains the headers for the table, and I want to show an empty table when there are no items in the datasource, not just the content of EmptyDataTemplate.If there is no choice I will copy the LayoutTemplate into EmptyDataTemplate.
I have read all kinds of great things about the new List View (well it was new when 3.5 was introduced). But I have not figured out how to set the width of a column. I have tried setting width in Layout, Item, Alternate, but none seems to affect the width.In related question, is there any way to hide a column?
No matter how I set the width in the EmptyDataRowStyle in a GridView, it gets ignored. The width of this construct always takes on the width of the text instead of what is asigned to the width property. This is also true if the property is set as a CSS style width.
If the width is assigned to the GridView construct then the EmptyDataRowStyle will take on that width.
While running ItemDetabound upon load of a listivew, I am trying to access the text in a label of the LayoutTemplate of a different Listview. It works fine if I try access the same labels under the same names if they are in the same listview, but not if they are in a different one. It was working for a while, can't figure out what I changed, but now says that object doesn't exist.
I have a listbox control that is used to insert and update data. There is a checkbox that some users should be able to set while others should not. In what event shold I set it's enabled property and what would the findcontrol string look like?
I am using a ListView and i want to get my datatables sorted by clicking table headers. I am binding my ListView to DataSet via DataSource peoperty of ListView.I donot want to use ObjectDataSource or SQLDataSource Controls.
i am usingVWD 2010 andwant to create a website supported under .net 3.5. The deafault mater page has the loging pgaes already set up (.net 4.0) which is very good and helping to start. But once i changed my project to run under .Net 3.5 , i could not have the account register webpage working and getting this error : Parser Error Message: Type 'System.Web.UI.WebControls.CreateUserWizard' does not have a public property named 'LayoutTemplate'.
Is there any way to set the width of a GridView to a pre-determined width?
I have set the width of the gridview and all the columns to a % and then to a number of pixels but it does work. The gridview always sets itself to a width required to display all fields and it goes beyond the resolution of the screen. I would like to contain it to 1024 pixels.
I have a listview which I would like to fill with self created user controls.But the problem is that the properties in the user control is not set. The usercontrols are displayed but the property values I enter is not set. Why is that?
I have a Sidemenu item in my ASP.NET application like below. There are two types of users in my application (Associates, Managers).When ever Associate Login then I have to disable Manager link. I am not able find visible property in codebehind since it is a HTML control. So need your support how to handle this
I am an ASP newbie and I have created a listview to display a table that works okay. I would like to change it so when you go to the next page the widths of the columns don't change. I found some code at a website called the code project that is supposed to do this but I was wondering if there was a way you could just set the column widths in the template code.
I am simply trying to change the listView template based on a value in the listview data. I do have this displaying the information correctly. Except when I try to change the item template based on a value in the listview. My code is below ....