I am retrieving a table from SQL database and save it into a dataset.
After that I displayed that dataset on the form with DATAGRID.
I can show that.
Here comes my problem.
I have a column in the dataset.
Let's call it Status.
If the status is open, I want to change the font of that row and allow User to edit that row.
If not, Use...
Hi,
I am trying to print a wpf document. I am using documentpaginator for pagination and a user control to create actual visual to print. My user control has few textboxes and a datagrid binded to data objects which are passed to the user control at runtime.
Now the code works great when printing to an XPS document but when it prints t...
<cc1:ConfirmButtonExtender DisplayModalPopupID="ModalPopupExtender4" ID="ConfirmButtonExtender4"
runat="server" TargetControlID="lnkremoveloc" Enabled="False" OnClientCancel="RemoveLocations">
</cc1:ConfirmButtonExtender>
<cc1:ModalPopupExtender ID="ModalPopupExtender4" OkControlID="btnDisable" CancelC...
One of the columns in my DataGrid contains a Hyperlink in a TextBlock. When a row is selected, the hyperlink shows as blue on blue, so i want to change it's text color to white. How can I do that?
The DataGrid looks like this:
<DataGrid>
<DataGrid.Columns>
<DataGridTemplateColumn Header="Title">
<DataGridTemplat...
Hi,
What would be the best/right way to have a set of DataGrid columns have proportional width (Width="*"), but to have their MINIMUM width be at least the width of their content? At the moment, if I use Width="*", then the columns stay exactly proportional, but content gets cropped if the columns get too thin. If I use Width="Auto", th...
I have a page 3 datacontrols (in order, datalist->grid->listview, the selection from one feeds into the next) works perfectly locally, using dot net connector for mysql. My webhost uses ODBC, and I had to remove [ ] from the select statements in my code and put the table names. I removed the [ ] 's and my page runs, and my 1st/datalis...
How to style parts of the tooltip e.g. bold? I’m generating a tooltip in an itemrenderer for an datagrid, displaying the column name and then the value: I want to display the value bold…
public override function set data(value:Object):void
{
var dg:DataGrid = this.listData.owner as DataGrid;
var dataField:String = (dg.columns[this.l...
I need to disable a row in a Silverlight datagrid when that row is being refreshed from the database.
This 'pseudo code' of course doesn't work, but I can't find a way in Silverlight 4 to do this.
With WPF there's triggers but I can't use those in Silverlight. If I just wanted to set the background that is easy with an IValueConverter ...
I have OnMouseMove event, during which I want to find a value of certain cell (not neccesarily the one under the mouse). Basically the question is:
How to access cell data using its x and y coordinates without selecting it, changing focus etc?
...
I have a list that I populate in the init of my viewmodel:
ListOfEmployees = new List<EmployeeBO>(employeeRepository.GetEmployees(true, true));
I am trying to get a combobox in a datagrid to populate from this list.
<DataGridTemplateColumn Header="U/M" MinWidth="145">
<DataGridTemplateColumn.CellEditingTemplate>
<DataTemplate>
...
I can't figure out why the first part of code isn't working, but the second is.
PART 1
<DataGrid.RowStyle>
<Style TargetType="DataGridRow">
<Style.Triggers>
<Trigger Property="IsMouseOver"
Value="True">
<Setter Property="Background"
...
I have setup a DataGrid with a number of columns and a checkbox and column at the end of the row.
I am also changing the layout of the datagrid on the OnItemCreated event which changes the layout of the datagrid by expanding the rows with the "Rowspan" attribute and remove the
extra columns and controls where they are no longer required...
I'm new to Silverlight and I've used it to create a simple datagrid that I'd like to include as part of a view within an ASP.NET MVC View (while using the existing master page layout).
What's the best way to do this? I haven't been able to find any examples...
...
Sorry, I have seen this questioned asked a couple of times here already, but none of the answers have solved my problem.
public MainWindow()
{
_PropertyTenantData = new DataTable();
_PropertyTenantData.Columns.Add(new DataColumn("Property", typeof(string)));
_PropertyTenantData.Columns...
I am using the following code in my viewmodel to delete items out of a collection:
UnitMeasureCollection.CollectionChanged += new NotifyCollectionChangedEventHandler(ListOfUnitMeasureCollectionChanged);
void ListOfUnitMeasureCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
{
if (e.Action == NotifyCollectionChan...
You know in Visual Studio and other Microsoft products such as Word and Excel, there is that little question/exclamation mark symbol that appears, and if you click on it something drops down to tell you something about what's been entered at that point.
What is that, and could I put it in a cell in a DataGrid?
...
In C# (VS2005), how can I have extra information that pops out from a cell in a datagrid?
In one column of the grid, there are "YES" or "NO" values, but for the "NO" values I need to offer an explanation for why it is "NO". Is there something obvious that can do this?
...
I have a very simple object called CellData. Is defined as:
public sealed class CellData
{
internal string DisplayText
{
get;
set;
}
public string Color
{
get;
set;
}
public override string ToString()
{
return this.DisplayText;
}
}
I can get it to display u...
Does anyone know how I can do the equivalent XAML binding in code?
<DataGrid ... >
<DataGrid.Columns>
<DataGridTextColumn
Binding="{Binding Description}" <=== set in code **
/>
</DataGrid.Columns>
</DataGrid>
Cheers,
Berryl
=== UPDATE ====
It looks like the method I have been looking for is Da...
hi
is there a way to do an advanced filter for a Ext js datagrid
something like this :
smartclient library advanced filter
and many thanx
...