any type data (typeof) for 1 column in radDataGridViev

3 posts, 0 answers
  1. RIchard
    RIchard avatar
    2 posts
    Member since:
    Aug 2016

    Posted 17 Aug Link to this post

    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. Dess
    Admin
    Dess avatar
    1609 posts

    Posted 18 Aug Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. RIchard
    RIchard avatar
    2 posts
    Member since:
    Aug 2016

    Posted 18 Aug in reply to Dess Link to this post

    Amazing, wery ty.

    is alive buhaha

Back to Top