In my Windows Mobile .NET application I have a simple array of object with the data I want to display in my DataGrid. To do this, I simply call:
myDataGrid.DataSource = myArray;
This works, but I have a problem with it: it uses all properties as columns and uses the names of the properties as the column headers. I can't figure out how ...
I am working with windows application.
I have a datagrid in vb.net. Its first column is a checkbox. I want to know which checkboxes are checked and which are not.
My code is :
Dim dr As DataGridViewRow
For i = 0 To gdStudInfo.RowCount - 1
dr = gdStudInfo.Rows(i)
att = dr.Cells(0).Va...
Hi,
I've been using C# for a while and began a program now to learn WPF-which means I know almost nothing of it.
I used this tutorial as a guide to do what I wanted to do (which is binding a database to a datagrid), after a hard struggle to add the adapter as the source of the datagrid I now want to enable editing with validation on som...
I need to save the selected row and the vertical scrollBar's position after a refresh. This is how I do it:
int currRow = myGrid.CurrentRowIndex;
int vScrollPos = ((ScrollBar)myGrid.Controls[1]).Value
// some code that refreshes the data among other things
myGrid.CurrentRowIndex = currRow; // this sets the property
myGrid.Select(currRow...
I have a DataGrid that needs to have the following borders:
-------------------
| | |
| |________|
| | |
| |________|
| | |
| |________|
| | |
-------------------
How do I set the border for a certain column and keep it for the rest of the datagrid?
This is...
how do i change the item selected in a combobox selection based on a selection of a datagrid object?
...
Hey, Guys
As I have a DataGrid as another DataGrid's RowDetailsTemplate, I've got a strage effekt. If I Change selection in my inner DataGrid, the SelectionChanged-Method in the outer Grid is automatically caled, too. I don't know why, but I would like to know, what I can do against this.
Thx
...
I have a DataGrid in my silverlight application and I'm wondering how to get the same behavior for the vertical scrolling as the horizontal scrolling. When I resize the browser horizontally, The app will bunch up all the controls and the horizontal scrollbar will appear, however when I resize it vertially, the controls at the bottom of ...
How i can to create my custom AJAX DataGrid for ASP.NET? Thanks.
...
For example,
I have a collection of integers 1 - 10.
I want to dynamically display 4 (can be 5, 6, 7) columns in the datagrid in silverlight.
How can I bind the collection to the datagrid to achieve the following?
C1 C2 C3 C4
R1 1 2 3 4
R2 5 6 7 8
R3 9 10
Cheers
...
Hi, I can expose a DataGridComboBoxColumn on a grid, but the user must click it twice to show its drop-down list (the first is to gain focus and enter in edit-mode).
How can I force programatically to show the drop-down list?
...
Hi
How we can grouping data-grid in silver-light with xaml?
(I used silver-light 4 )
...
Hi I have a datagrid that has a number of datagridtemplate columns that are all identical apart from they each have a different datacontext on the template's stackpanel.
<toolkit:DataGridTemplateColumn Header="Col 1">
<toolkit:DataGridTemplateColumn.CellTemplate>
<DataTemplate>
...
I want to use DataGrid.
I parse the data from an XML.
In the XML for each row i have a tag that holds a specific command.
I want that the user can click on any cell of the row (or a specific one), and i need to catch the click event execute the command and redirect to another form...
I can do this with custom control made of panels and...
Hi
Is there a way for a right click event to select a row in toolkit datagrid?
I'm using toolkit context menu which works nicely, but the problem is, only left click is able to select rows, and I need right click to be able to do that if I want my context menu to work properly.
Any help is appreciated
...
Hi,
I want to create a DataGrid control in WPF in which there is a button in the first cell of each row. Clicking this button will show RowDetailsTemplate or SubRow. My concern is How do i add a button which will show/Hide the RowDetailsTemplate?
Any help will be greatly appreciated
Thanks
...
Hey, I have a hyperlink column. I need to add just one query string to the url. It needs to pass the string located in the first column of the same row. Let me know if you need more info.
Thanks
Edit: Also, if you don't mind it might be useful if I was able to pass the primary key of the object bound to that row, instead of the string ...
Hello
I am trying to change the header color and the row color of the datagrid. Apparently, its not a spark component so can't apply skin on it. Anyone knows how to style it? Thanks.
...
Hello guys.
I am trying to change the datagrid header color by editing headerColor style. I could change the font size, font family...etc except the headerColor. Would someone help me about it? Thanks a lot.
My code
Mxml
<mx:DataGrid id="dataGrid" creationComplete="dataGrid_creationCompleteHandler(event)" dataProvider="{cityinfoRes...
I have combo-box;
<mx:VBox xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" >
<fx:Script>
<![CDATA[
public var cbSelected:String;
]]>
</fx:Script>
<mx:ComboBox id="CustomBox" upd...