aspxgridview

How to have two values for a column in grid

Hi, We are using AspXGridView devXgrid for our web application. I have to assign two values (id,value) for a column in the grid. How can I do this? Thanks, P.Gopalakrishnan. ...

Prevent AspxGridView from populating on loading page

I have AspxGridView on my page. I want users to be able to set up some data on the web form, and after they press one button, the data from screen is being read, validated and bussines object is being created. This object has a GetData() function, and returns an array of objects representing rows in a grid. I want ASPXGrid not to popul...

AspxGridView dynamic headers

I have a aspxgridview control from DevXpress. Is there a way to dynamically specify the column headers in the code file and not in the aspx file? This is what I have right now (in the aspx/html file): <dxwgv:ASPxGridView ID="grid" runat="server" OnInit ="grid_Init"> <Columns> <dxwgv:GridViewDataTextColumn Capt...

Deserialize a databound gridview column before displaying data.

I have an aspx page with gridview. This grid view is bound to a ObjectDataSource. The objectdatasource fetches data from a View. I have class which I have specified in Type property of objectdatasource and the method of class which returns data is specified in SelectMethod property of objectdatasource. The method returns DataTable objec...

AspxGridview Update Row Default Value

I have a devXpress Gridview and there's a functionality to edit specific rows. I have two columns called "dateModified" and "modifiedBy". I want it to automatically populate those two fields with the current date and user whenever somebody clicks the "edit" button. Is there a way to do this in the client code? This is what I got so far ...

Only Allow Certain Users to Edit ASPxGridView

I've got an ASPxGridView that I would like to allow some users to have read and others users write access to. Ideally this would be based on Active Directory groups. How can I do this? ...

devexpress aspxgridview - custom text for paging

Is there a way to customize the top and bottom paging display? Like I want to display the Top as "Now displaying 1 - 10 of 1000 records for ". Bottom page as normal grid style like [1][2]... ...

devexpress aspxgridview - setting label with page number

Hi, I am using devexpress aspxgridview in asp.net 3.5 web application. on pageload, I have a label control on top of the page whose text for example is "abc". I am trying to set the value of the label with the page number selected by the user from the grid using onpageindexchanged event. But the label values is not changing. it is st...

Dynamic change of an editor type for ASPxGridView

I have an ASPxGridView from DevExpress fed with data from ObjectDataSource. My data row objects expose properties such ParameterName, ParameterType and ParameterValue. //Properties, constructor and private fields code omitted for clarity public class InputParameterDescription { public string ParameterName; public Type ParameterTy...

How to get Between Date filtering into the Filter Row

I'm trying to use a DevExpress ASPxGridView to display some data. I need to allow my users to filter on a particular column, and I'd like to let them filter between two dates. I know this is possible with the use of the FilterBar, but I'd like to try and do it in the actual filter row (the row that appears underneath the header), possib...

ASPXGridView Custom CallBack

We have the DevExpress grid and in the OnCustomCallback event we need to assign a hidden field value=true. After we need to get the hidden field value to javascript? We tried in following manner: protected void dgUnReconcile_CustomCallback(object sender, ASPxGridViewCustomCallbackEventArgs e) { ASPxGridView temp = ((DevExpress.Web.A...

DevExpress ASPxGridView Fitlers

Hi, everyone. I have DevExpress grid in the page. For one column I enable filter in header of the table. But by default Grid select the first filter expression. What can I do to select another filter from C#? With The Best Regards, Alexander. ...

ASpxGridView Evaluation

I'm evaluating the AspxGridView. I'm interested in peoples experiences of it and whether they would recommend it. I'm also interested in any insight into the following Accessibility Support (to me it looks poor in this regard) The quality of the Xhtml outputted How to deal with change tracking and/or concurrancy ...

Can I Toggle HyperLink and TextBox?

I have datacolumn in my gridview that has either a url, or plain text. How do I toggle a Hyperlink in the HTML? This is what I have so far... which returns "View Link..." with or without a url :( <ItemTemplate> <asp:HyperLink ID="HyperLink3" runat="server" Text="View Link..." NavigateUrl='<%# Bind("DocLink") %>' Target="_blank"><...

How to assign event handler programatically

I'm using DevExpress AspxGridView and I'm trying to assign OnCustomCallBack programatically in the Page_Load. but it didn't work. this is my code, aspxGrid1.attributes.add("OnCustomCallback","MyServerSideFunctionName") ...

AspxGridview with all checkbox column

i have a devexpress grid with dxwgv:GridViewDataCheckColumn Caption="ONE" FieldName="ONE"> i have all columns with checkbox + there is checkbox on rowselect e.g. checbox | column(checkbox) | column(checkbox) | column(checkbox) | column(checkbox) the problem is to get the row values when any of the col...

ASPxGridView in a JQuery UI modal dialog

I'm trying to display an ASPxGridView using a JQuery UI modal dialog. The grid is configured to use callbacks to access the server (seems to be the best/fastest solution). I'm able to show it via a normal postback, but am unable to run any callbacks correctly. The first click on a pager link will callback to the server and the correct r...

WindowsIdentity.Impersonate and PostBack issue

I am writing an ASP website that uses Forms security and Active Directory. I allow the user to login using the Windows API: [DllImport("advapi32.dll", SetLastError = true)] public static extern bool LogonUser(string pszUsername, string pszDomain, string pszPassword, int dwLogonType, int dwLogonProvider, ref IntPtr phToken); This give...

ASPxGridView -Custom Controls in DetailRow

Hi, I try to have custom controls in a DevExpress grids detail row. When ever a row is expanded I would like to load data into those custom controls based on the Masters Key. I am using the detailrow expended method. protected void grid_DetailRowExpandedChanged(object sender, ASPxGridViewDetailRowEventArgs e) if (e.Expanded) { ...

ObjectDataSource -> SelectMethod is not specified

Hello all, I created a UserControl with ObjectDataSource + ASPxGridView. SelectMethod of ObjectDataSource I set the dynamicly depending on public parameter of UserControl: private int _companyID = -1; public int CompanyID { get { return _companyID; } set { _companyID = value; dsPersons.SelectMethod = "GetPe...