hi all,
can someone show me a small example how to create a datagridview.
I am struggling how to show a datagrid in python eto.
Thanks
hi all,
can someone show me a small example how to create a datagridview.
I am struggling how to show a datagrid in python eto.
Thanks
I never took this very far , was just a test. But this topic shows a basic example of getting a datagrid view in an eto form, launched from GH.
Thanks for your help.
I tried to make it work for a small example, without a class but i was not able to get the cell text.
The cells are there but no text…or maybe its because the cell is transperant.
How do i make the cell text visible?
import Rhino
import Eto.Drawing as drawing
import Eto.Forms as formswind = forms.Form()
wind.Size = drawing.Size(500,300)gri = forms.GridView()
gri.ShowHeader = True
gri.DataStore = ([“test”,“e”])col = forms.GridColumn()
col.HeaderText = ‘Hello_test’
col.DataCell = forms.TextBoxCell(0)
gri.Columns.Add(col)wind.Content = gri
wind.Show()
I have exactly the same issue. The FilterCollection Data object that I have attached to the DataStore has the values, but nothing to see in the GridView even though the rows get generated.
Anybody has a clue?
Thanks in advance
Christian
This example may be helpful.
Thanks for the example. The problem is, I have a dynamic data sitting in the back coming from an SQLite table → DataTable and I am generating the columns and rows dynamically. I have it solved now by using CustomCell and the override OnCreateCell. Might be the way to go, as I also want to have more control over the layout of the cell.
Thanks a lot.
Christian
Is there any possibility to get a rowheader showing the row number in Eto GridView?
Also, is it possible to add a custom control to the columnheader? Anything like a StackLayout or similar?
Thanks in advance
Christian