6
I Use This!
Activity Not Available

News

Posted over 12 years ago by Doomer3D
public class ImprovedHeader : SourceGrid.Cells.Views.ColumnHeader { protected override void PrepareView(SourceGrid.CellContext context) { base.PrepareView(context); if ... [More] (context.CellRange.Contains(context.Grid.MouseCellPosition)) { ElementText.ForeColor = HeaderForeColorHot; } else { ElementText.ForeColor = HeaderForeColor; } } } HeaderForeColorHot - цвет при наведении мышкой (mouse over color) HeaderForeColor - обычный цвет (default fore color) [Less]
Posted over 12 years ago by esp_ink
Well, I'm new here, sorry about my english. I'm trying to use sourcegrid2 control, but when I'm building the columns, even with the multiple examples that I've found "googling it", everything goes fine, no errors, the values on the cells are ... [More] correct, but the columnsheaders never appear :( I don't know what I'm doing wrong... Here's an example of what I'm doing (where r is a datarow): For i As Integer = 0 To r.ItemArray.Length - 1 Dim header As New SourceGrid2.Cells.Real.ColumnHeader("Test" & i) Grid1(0, i) = header Next I've also tried: For i As Integer = 0 To r.ItemArray.Length - 1 Grid1(0, i) = New SourceGrid2.Cells.Real.ColumnHeader(r.Table.Columns(i).ColumnName) Next   But nothing...  Please, what I'm doing wrong? I'm using Visual Studio 2010 [Less]
Posted over 12 years ago by Kmitty
I would like to display a grid with thicker borders around various groups of cells. Is this only possible by setting the appropriate borders of the individual cells or is there a way of identifying a group of cells and then setting a border around them as a whole? 
Posted over 12 years ago by bthtung
When I write: grDetail.FixedColumns = 3; And run. On the form, I can't select cell[1,1] by mouse or keyboard, but I can select cell[1,2] When I write: grDetail.FixedColumns = 6; And run. On the form, I can't select cell[1,1]; cell[1,2]; cell[1,3]; cell[1,4] by mouse or keyboard, but I can select cell[1,5] Help me. Thanks
Posted over 12 years ago by rdingwall
Hey can we get SourceGrid available as a package on www.nuget.org?
Posted over 12 years ago by Kmitty
Hi, I was trying just this (albeit in vb.net) and the 'OnStartingEdit' method in my derived class never seems to be called Public Class TextEd2  Inherits SourceGrid.Cells.Editors.TextBox Public Sub New ()  MyBase.New(GetType(String))   ... [More] Me.AllowNull = True    End Sub P rotected Overrides Sub OnStartingEdit(cellContext As SourceGrid.CellContext, editorControl As System.Windows.Forms.Control)     MyBase.OnStartingEdit(cellContext, editorControl)   AddHandler Control.PreviewKeyDown, AddressOf HandleKeyPreview  End Sub Private   Sub HandleKeyPreview(sender As Object, e As PreviewKeyDownEventArgs)   'Handle the key preview End Sub  Any thoughts?   [Less]
Posted over 12 years ago by Kmitty
Hi, Just getting started with SourceGrid and have hit two issues that I can't seem to find any info on: 1) When I have a number of rows/colums that are fixed (don't scroll) then it seems that the black cell surround that is the cell cursor (ie ... [More] shows the cell that will take any keyboard input) can't be moved to editable cells that are in those fixed rows/columns 2) When I start to edit a cell that has so far had nothing entered into it (either string or integer type) then if I enter some data and  then decide I don't want and and delete it I can't move away from the cell without entering some valid data. Pressing escape doesn't help either Any help with these appreciated   [Less]
Posted over 12 years ago by ptlchetan
Hello Is it possible to have cell edit like a excell ?   if we write more then cell width it will show whole string on cell select but very few on cell as you lost focus.?   Thanks Chetan  
Posted over 12 years ago by TigerPVR
Hello! I use SourceGrid, and very enjoy it. Thanks! Sorry, I have one question. I use data-binding to an array (float[,]), all data showing and processing right. But column and row headers start numeration since "0", but I need to set it to "1". How may I do it?
Posted almost 13 years ago by AndersE
Hi  I am using the SourceGrid in an application were i have data updates for the grid comming continusly from external connected HW.  I would like to be able to sort the colunms, but my problem is that  when i do a sort (click on of the coloumn ... [More] headers) , the grid will sort, it returns to non sorted view as soon as I update the any of the cell values.  However the Asc\Desc arrow will remain on the selected coloumn If i stop updating the cell values, the sort works perfect. I do not want the sort done continously as data updates arives, but simply preservet the sort state at the time the header is clicked. Hope somebody can clarify this issue for me.               [Less]