I have a DataGrid that is loaded from an XML data store, all created declaratively. I'd like to set the sort when the data is loaded. All of the examples I've found deal with doing this programatically and hint that it should be doable Declaratively.
This is the code that creates the datasource.
<head>
<title>Untitled Page</title>...
In a Web Part for Sharepoint, I'm trying to add a variable number/ordering of ButtonColumns to a DataGrid dynamically based on an option the user has selected. The problem is that the dynamic columns aren't firing off the events I set up on the DataGrid (such as SelectedIndexChanged). When the table originally constained a static set o...
I've got a client who has a list of items on a Datagrid. When the row is clicked, it sends the user to another page with details of that item. The client wants the rows to act like HTML links, where the color is purple when the link has been previously visited and its normal color if the row hasnt been clicked in the past.
I've accomp...
Hi I'm trying to make some rows of a DataGrid blink from white to red depending on their status.
So, I have tried this: (e.row is the current row Im trying to make blink)
Storyboard PendingStory = new Storyboard();
ColorAnimation PendingColorAnim = new ColorAnimation();
System.Windows.Duration PendingDur...
I am assigning a 'ds' dataset to datagrid.In addition to that I want to add new column with check boxes.That new column will be first column of datagrid.
Currently I am using below code,
DataGrid1.DataSource = dsResult.Tables("Result")
Result table has 4 column....in addtion to that i want to column "Selection" with check boxes
...
Hi,
I would like to know if it would be possible to add functionality to the 'Select All' button in the top left of a datagrid so that it also unselects all rows? I have a method attached to a button which does this, but it would be great if I could fire this method from the Select All button, to keep functionality in the same part of t...
Hi,
I have a datagrid with a check box. When I click n the cell, I would like the checkbox to be automatically checked when I selected the cell which contains it. what it's doing right now is that I need to select the cell then click on the checkbox and that is quite annoying for us.
<dg:DataGrid Name="GridUsureOperation"...
Hello,
I'd like to do following:
public List<Users> PreLoadedUserList { get; set; }
public List<RowEntries> SomeDataRowList { get; set; }
public class Users
{
public int Age { get; set; }
public string Name { get; set; }
}
public class SomeDataRowList
{
public int UserAge { get; set;
}
Now my (WPF Toolkit) DataGrid look...
Hi All,
I've a DataGrid which contains data fetched from the server side. I need to filter the data based on some conditions. I've three checkboxes, on selecting the checkboxes I need to filter the data. For example I've three Checkboxes- Pending, Issued,Completed. When I uncheck Pending checkbox, the DataGrid should contain only Issues...
Hi,
I would like to change the styling of the first row (only) in a WPF Datagrid but haven't found how to do it. I wondered about creating a trigger, something like this:
<Style TargetType="{x:Type dg:DataGridRow}">
<Style.Triggers>
<Trigger Property="SelectedIndex" Value="0">
<Setter Property="Background" Value...
In a flex datagrid, by default clicking on column headers does sorting. I want it such that if a user clicks a column header the entire column is selected. I have the datagrid listening for the HEADER_RELEASE event so I know when the column header is clicked.
How can I have the column and header appear highlighted similar to how a ro...
In a Sharepoint web part, I have a DataGrid with paging that I load with all of the data (not using custom paging - custom paging would require a significant overhaul in the current process and is probably one of the last options I can try). I was wondering if it was possible to have it page through the data without re-binding the data ...
My WPF datagrid's columns are fixed width, which means long text in the rows are cut off. How can I have the text wrap?
...
Hi
I've got a ASP.NET web page, which has a bound datagrid on it, it was having trouble with showing vertical and horizontal scroll bars when it got over 14 items in it, so I decided to move the datagrid to paging, which works fine when it first loads, it shows the first 14 items, and places the correct number of next page links at the ...
Hello everybody.
I'm new to Flex, but I've been exploring it with Flex Builder, and its pretty good.
Indeed the best for fast building of Web based Apps...
I'm trying to do something with eventListeners, but i still do a lot of messy code, so wanted help of those who already know flex.
I'm have a DataGrid, and its itens are added b...
I have a datagrid all set up, connected to an XMLStore. When the user selects a month from the dropdown list I want the grid to filter only that months data. Should be simple and according to every example it is. I can't figue out why it doesn't work, nor why IE tells me that none of the methods (filter, sort, setQuery) are supported by ...
Hey!
How do you change the color of the silverlight datagrid rows?!
I've tried this but it doesn't seem to work how I want it to...Random rows get colored incorrectly:
void dataGrid1_LoadingRow(object sender, DataGridRowEventArgs e)
{
var c = e.Row.DataContext as Job;
if (c != null && c.Status.Contains(...
I have a datagrid that I want to pass in a generic collection. On mouseover I want to test if the row has a specific column and return the value.
What I am trying to accomplish is to determine the type of objects in the grid based on the existence of a specific column. For example, if "SerialNo" exists I know the grid is currently holdi...
I have data being populated into my data grid.Now,In the last column I have data like "Out of Balance " and "Inbalance". I want the display to show all "out of balance" data as being underlined and red in clour while the "in Balance" data to be green in colour without any underline.Note that, the stored proc would give me initially all t...
Although the question seems simple, I couldn't find the answer to it.
I have a DBGrid component with lots of columns, and as a result they don't fit into the page and scrollbar appears. I also have column-autofix mechanism, which makes each column have width of the longest element in the table. When I scroll DBGrid to the right-end the...