I'm using Devexpress tool anyone please help me?
I'm using Devexpress tool to develop my website. But i have some problems so i hope anyone could help me. I really need it in my project. Please see here:
http://www.fiditour.com/dattourtructuyen.aspx?id=731
look section above capcha. I have 2 questions:
- How they can add textbox in gridview?
- How they can add new row by value in textbox?
Thank for reading!
That is not textboxes in the grid. They are editable cells.
You can access the values entered by using the handler of the first row, then like #Давид Дача Милинкови mentionned, you add the specified row.
So as to have a textbox inside the column you must insert a GridViewDataTextColumn not just a GridViewDataColumn.
In the CellEditorInitialize event of the Grid you can pass the Default Value to e.Editor.
Related
I have a problem with Janus Grid. I am trying to make cell of the one column to be edit so user can change value in particular cell.
I try:
this.myJanusGrid.RootTable.Columns[0].EditType = Janus.Windows.GridEX.EditType.TextBox
and
this.myJanusGrid.RootTable.Columns[0].Selectable=true
None of these two attempt were successful.
Thank's in advance for any help and suggestion!
Use this:
this.myJanusGrid.RootTable.AllowEdit = Janus.Web.GridEX.InheritableBoolean.True;
If you have more columns that you don´t want them to be editable, in adittion you should do a column bucle and mark each column you don´t want to be editable this way (VB):
For Each column As GridEXColumn In myJanusGrid.RootTable.Columns
If column.Key.ToUpper() <> "EDITABLE_COLUMN_NAME" Then
column.SelectableCells = SelectableCells.None
End If
Next
I am trying to display the contents of different tables dynamically using scatterview, is there an easy way to do that. Right now I have the results of a query in DatagridView and I want to add it to a ScatterViewItem. I tried directly assigning, however I must be doing something wrong here. Do I need to bind it to the xaml code?
dgv = QueryResult();
svi.Content = dgv.DataSource;
The answer for this question was already there, my mistake I did not search that well.
The last post in :
Can I programmatically add a row to a WPF datagrid?
Moderators please flag appropriately.
Thanks
I have gone through many articles but everyone redirects to
How to: Host Controls in Windows Forms DataGridView Cells.
But the problem lies here is that I dont want to add new column to my DataGridView which the article says to do it.I am having a DataGridView which is filled through the DataSource property of Grid.The data is coming from the database and filling the Dataset which indirectly fills the DataGridView.
So would like to ask how to add datetimepicker to my existing column of datagrid using the above article.So far I have created three classes namely CalendarColumn.cs, CalendarCells.cs and CalendarEditingControl.cs.
Also would like to ask about the NULL values the column has.Will the Null values will be handled by the classes or do we have to add some code?
The Output m getting is something like this---
and I want that extra column(Unnamed) not to appear in the Grid and show only the DateOfBirth column with DTP control as shown below--
Any links or articles would be appreciated.
Thanks in advance.
Take a look at this article, I hope it will be useful: DataGridViewExtension.
Hai,
Am using DevExpress Tree List in C#.NET application .I want to know about how to trigger select event of checkbox control in DevExpress XtraTree List.
example:
I'm using a treelist extra editors devexpress. The columns are loading from database and contain check boxes.when checked a check box and press an edit button i want to take the value as 1 for the corresponding checkbox.and want to save that value to database
Thank you.
To learn how to obtain a cell value in the XtraTreeList, please refer to the topic available at:
http://documentation.devexpress.com/#WindowsForms/CustomDocument191
Does this help?
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, User cannot edit it.
Anyone?
I have been searching a lot. But none of them really helped me.
I am using DATAGRID. NOT a gridview.
Thanks all.
Use a datatemplate with datatriggers.