This is a migrated thread and some comments may be shown as answers.

any type data (typeof) for 1 column in radDataGridViev

2 Answers 23 Views
GridView
This is a migrated thread and some comments may be shown as answers.
RIchard
Top achievements
Rank 1
RIchard asked on 17 Aug 2016, 08:55 AM

need programing created structure table and see for winForm.

user need insert any info and saving

Problem for  one column have any typeof.

need used control or what ?

 

--------------------------------------------------------------

DataTable myDataTable = DataSet_PersonData.Tables.Add("PersonalData");            

myDataTable.Columns.Add("id", typeof(string));            

myDataTable.Columns.Add("row", typeof(string));

 

myDataTable.Rows.Add(new object[] { "Name" });      

myDataTable.Rows.Add(new object[] { "Surname" });    

myDataTable.Rows.Add(new object[] { "tel" });            

myDataTable.Rows.Add(new object[] { "date" });          

radGridView2PersonData.DataSource = DataSet_PersonData.Tables["PersonalData"];    

------------------------------------------------------------------------

and exit this:

-------------------------------
column1  | column2     |
-------------------------------
Name       | *String        |
Surname  | *String        |
telephone | *int              |
Date          | *DataTime |
-------------------------------

cell marked * - insert info user for winform.

need in cell  "*DataTime" open radCalendar or set fo ONLY cell [Column2][row'*DataTime'] set typeof(DateTime)

please help changet typeof for ONLY this cell in this table

2 Answers, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 18 Aug 2016, 11:40 AM
Hello Richard,

Thank you for writing. 

According to the provided information, I think that RadPropertyGrid is more suitable for your case. It displays two columns, where the first one represents the property name and the second one stores the property value. You can find useful information about populating RadPropertyGrid with data in the following help article: http://docs.telerik.com/devtools/winforms/propertygrid/radpropertystore---adding-custom-properties

As to the RadGridView, you can use the default GridViewTextBoxColumn. Depending on the row index or cell value type, you can specify what editor to be used by handling the EditorRequired event: http://docs.telerik.com/devtools/winforms/gridview/editors/how-to/change-the-active-editor-depending-on-the-cell-value-type.

I hope this information helps. Should you have further questions I would be glad to help.

Regards,
Dess
Telerik by Progress
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
0
RIchard
Top achievements
Rank 1
answered on 18 Aug 2016, 12:19 PM

Amazing, wery ty.

is alive buhaha

Tags
GridView
Asked by
RIchard
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
RIchard
Top achievements
Rank 1
Share this question
or