I know the question is a little choppy and perhaps misleading,but I have a gridview with dropdownlists on the rows. I created an AddHandler and a Delegate for the SelectedIndexChanged and it gets to the sub. Here is the code for that:
AddHandler ddlmgr.SelectedIndexChanged, AddressOf ddlmgr_SelectedIndexChanged
Public Delegate Sub DropD...
hello,
I need to aske I have gridview with combobox template column and its fill with items .
when select index changed i need to set description value in onther cell but I couldn't get the index of the gridview row?
any help
...
Hi,
On my windows form, I need to programatically set the width of columns in the grid view. I am using the following code:
this.dgridv.Columns[columnName].Width = columnWidth;
The above stmt runs without any error. But, the column width remains unchanged. If I insert a breakpoint and check the value of width after the stmt runs, it i...
I have a GridView inside UpdatePanel and also a HoverMenuExtender declared. GridView also has Paging and Sorting enabled and PageSize is 25.
Right now I'm working on a mockup of the actual application so I'm using a mock DataSet with only 20 records.
Problem is when I try to sort gridView by clicking on a column it's VERY SLOW. It take...
I have a gridview with a dropdown list that was created programmatcially. I want to have access to the selected value and to that row's Id. I have the dropdownlist created in *Gridview_RowDataBound* and I am able to use the text in the cell but my addHandler is never fired. Where do I give it the Add handler. I believe I can assign it ...
For a new project, we are evaluating the use of ASP.NET MVC and one of the requirements is that we have a very rich UI experience with inline record editing (i.e. the user clicks "edit" and the labels turn into text boxes and drop down lists and can update, delete, or cancel). We need all of the drop down lists to be populated from a da...
I am creating a dropdown list in code for a gridview. I want to create an addhandler so I can have access to the selectedvalue. However, here (Rowdatabound) the add handler does not get fired off. How should I go about this?
Protected Sub GridView1_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEven...
Hi
Use the DataKeyNames property to specify the field or fields that represent the primary key of the data source. You must set the DataKeyNames property in order for the automatic update and delete features of the GridView control to work.
a) According to above quote Update should only be possible if DataKeyNames is set, and yet I...
hi
1) If you are using ConflictOptions.OverwriteChanges, then you also need to set GridView.DataKeyNames, else GridView won’t pass these parameters to the SqlDataSource and thus the Delete operation won’t succeed.
But if you’re using ConflictOptions.CompareAllValues, then DataKeyNames doesn’t have to be set. Why?
2) But why nee...
I have an ASP.NET 3.5 GridView on a WebForm.
The GridView gets data from an ObjectDataSource which is set via the DataSourceID property in the code in front.
The ObjectDataSource returns a List of custom data class objects (just a class with public properties) to populate the GridView.
What I want to do is use the a List comsumed by t...
I'm going to be developing an events calendar page which will display a list of events for 12 months from the current date (it will be read-only). It's easy enough to grab the data from the DB with a SP passing in the start date and number of months etc, but I need to group the information by month when it is displayed in the page.
e.g. ...
I realise there is a solution for this but I am struggling to get it to convert to VB correctly :(
I have managed to get a cascading set of dropdowns with data based upon each others results which I was really pleased with.
However due to the post back the grid will disappear until the second value is selected and looks awful
Is there...
1) When SqlParameter.IsNullable is set to true, received null value is converted to DBNull.Value and sent to database. Thus I would assume setting IsNullable to true only makes sense when GridView’s Parameter.ConvertEmptyStringToNull is also set to true?
2) Both GridView’s and ObjectDataSource’s parameters have a ConvertEmptyStringToNul...
Is there an efficient way to overwrite the HTML output of a header and footer of an ASP.NET GridView control?
I would like to implement a methodology that is similar to the HeaderTemplate tag in an ASP.NET Repeater or does not require to include dynamically building the HTML output in the page code behind. If these two types of option...
I have a fairly big asp.net website that use GridView bound to the same object in lots of places. I'm using an item template to customize each row. However to have the same template in all the pages I have to copy & paste the item template to each page. Obviously this is not the best solution. On top of this I want to be able to change t...
I am trying to bind an ASP.NET GridView control to an string array and I get the following item:
A field or property with the name
'Item' was not found on the selected
data source.
What is correct value I should use for DataField property of the asp:BoundField column in my GridView control. Here is my source code:
ASPX page
...
I have an ASP.NET GridView control with two asp:CommandField columns that are both using the Select command to perform different tasks. How do I distinguish which column was selected in the OnRowCommand event when both return "Select" when I check the CommandName property of the GridViewCommandEventArgs object?
Here is my source code:
...
What is correct sytnax for setting an AsyncPostBackTrigger for an UpdatePanel with an asp:ButtonField from an GridView control?
I need to set an 'AsyncPostBackTrigger' for each asp:ButtonField in my GridView
Here is my source code
<asp:UpdatePanel ID="MyUpdatePanel" runat="server" ChildrenAsTriggers="true" UpdateMode="Conditional">
...
I have a gridview with page size=4 what I need is how can i make for loop for all rows in grid view not just in the currnt page?
thanks alot
...
Hello,
I want to edit a gridview on an other page when the user click on the edit button. If possible in a detailview. There is not example to how do it with linq. Do you know a good tutorial ?
Thank you.
...