gridview

Silverlight nested RadGridView SelectedItem DataContext

Hi, I'm developing a Silverlight 4 app and am using the 2010 Q1 release 1 RadGridView. I'm developing this app using the MVVM pattern and trying to keep my codebehind to a minimum. On my View I have a RadGridView and this binds to a property on my ViewModel. I am setting a property via the SelectedItem. I have a nested RadGridView a...

Create a ASP.NET Generic gridview

I wont to create a User Control based in gridview that have the edit add delete incorporate, the problem is these: In the admin part of my web site i have to repeat the same action for view add delete update the data for different datasource. I wont to create a generic gridview that have incorporate these action. The gridview can take...

Why doesn't Microsoft release a 'proper' AJAX grid for ASP.Net

Why doesn't Microsoft release a 'proper' AJAX grid for ASP.Net either as part of Visual Studio or the AJAX control toolkit? Has there been any discussion that anyone is aware of regarding this issue? Also does anyone have any open source suggestions for 'proper' AJAX gridviews? So far I have found one.... http://dotnetslackers.com/pro...

Asp.net gridview MVC

Can i create a gridview control in Asp.net MVC,and set its DataSource propertie and DataBind method,mormally as in web forms? ...

In GridView drop down does only have one value

I am using vb.net and populating dropdownlist in GridView1. I get the values and fill it in drop down. When I click on the drop down it is not doing anything. Seems it has only one value at the index 0. not at 1 and 2. Please help here is my code Private Sub GetCustomerBaseLine() Dim CustomerDS As New DataSet Custome...

MS Dynamics CRM trapping .NET error before I can handle it

This is a fun one. I have written a custom search page that provides faster, more user friendly searches than the default Contacts view and also allows searching of Leads and Contacts simultaneously. It uses GridViews bound to SqlDataSources that query filtered views. I'm sure someone will complain that I'm not using the web services ...

Using JQuery themeroller with ASP.NET gridview

For those of us who are aesthetically challenged, is there a way to apply JQuery's themes (e.g. redmond) to an ASP.NET gridview? Something like ... $(document).ready(function() { $(function() { $("<%= MyGridView.ClientID %>").Table(); }); }); Perhaps there's an addin that would emulate that type of functionality? ...

Create thumbnail image in c#

Hi,I want to display the thumbnail image in grid view from file location . how to generate that of .jpeg file I am using C# language with asp.net ...

Accessing dynamically added control from GridView Footer row

Hi, I have GridView control in my asp.net page with auto generated fields there is only footer template is present under asp:TemplateField. I can bind this gridview with any of databae table as depend on user selection. Now want to add new record in database so I have added text boxes on footer template cells at runtime depend on numbe...

ListView View mode as GridView with no bindingd

Hi, When you use a GridView as a ListViews view mode, you have entered yourself into a world of column-wise binding....is there a way for this not happen, or a work around that provides the listview with column headers but allows row-wise binding? Thanks, U. ...

Generating event for button inside gridview...

Hello, In my project I'm showing a gridview in which I'hv included a buttonfield...I want to download a file, when user clicks the button inside gridview whose path is stored in database and the file is stored in localfile system... thanks in advance. ...

dynamic GridView in CreateChildControls throws a "RegisterRequiresControlState can only be called before and during PreRender" exception

I am trying to add a GridView dynamically to a SharePoint Web Part. Right now, the first time I load the gridview, everything works fine. My gridview has an edit column enabled... so when I click that, it throws an exception when I try and add the gridview control on the postback. The exception: "RegisterRequiresControlState can only b...

Get DataKey values in GridView RowCommand

I have a GridView with an associated DataKey, which is the item ID. How do I retrieve that value inside the RowCommand event? This seems to work, but I don't like the cast to LinkButton (what if some other command is firing the event?), and I'm not too confident about the NamingContainer bit. LinkButton lb = (LinkButton)e.CommandSource...

GridView: Control Designer

Hi, I have a question regarding the GridView and the Control Designer of it. I've made a composite control inherited of the GridView. I would like to make some new created BoundField controls available in the designer of the GridView control? So that I can select the custom BoundField control from the Available fields list. Anyone got ...

LINQ Option Missing in Data Source for Grid View

Hi, I don't see a LINQ option when picking a data source for a grid view - any ideas? I see the other options like SQL etc. If I go into a page in another folder, I'm able to see this option. I just upgraded to Visual Web Developer 2010. Thanks! ...

ViewState Issue - Custom Controls in a GridView

I have a gridview that is populated on the Page_Load event if !PostBack is true. The gridview has several column, each header template has a custom control that I'm using to sort the data in a more efficient way than what the ASP.NET gridview offers. These custom controls have an OnSort event, I have tried defining them in the markup (...

Get ID in GridView

I have One grid say Grid 1 in which there are some columns. There is one view image button, one delete image button and one column which says that color column is Red or Blue. If color column is Red the deleted button is hidden else its shown (Based on user given rights to delete a column or not). Now a user clicks a view button for Re...

Gridview item template refresh

<asp:TemplateField HeaderText="Quantity" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left"> <ItemTemplate> <%#GetQuantityRemaining((int) Eval("Id")) %> </ItemTemplate> <HeaderStyle HorizontalAlign="Left"></HeaderStyle> <ItemStyle HorizontalAlign="Left"></ItemStyle> </asp:TemplateField> E...

GridView doesn't remember state between postbacks

Hi, I have a simple ASP page with databound grid (bound to an object source). The grid is within the page of a wizard and has a 'select' checkbox for each row. In one stage of the wizard, I bind the GridView: protected void Wizard1_NextButtonClick(object sender, WizardNavigationEventArgs e) { ... // Bind and display matche...

Asp.Net gridview customization

Hi If you go to http://ifdefined.com/btnet/bugs.aspx you will see a long list of sample data in an asp.net gridview control. What I need to do is something similar. I need to implement the filtering system by placing dropdown controls with dynamic values on the headers and then filter the record according to them. If you look carefully...