Home Forums WPF controls Xceed DataGrid for WPF Adding Data to a Column (Socket Related Stringed data)

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #22132 |

    Now can i get some help with another problem, adding Data to my DataControl..Here are the Columns i need to setup but only need to add Data to one of them at the present time..

    The Column below “User” in my program is a Chat Based program with a Server Side to it, the information coming in is by “String”. What i need some help with is getting my Current C# code to add the User to that Column as a Text Block and have the name come up in a Lime color…

    Below the Xaml is a section of C# Code that has a “Delegate” for a Dispatcher.Invoke Thread..Thxs for the Help Rattlerr,So far i really like this control and considering purchasing BluePrint Edition..

    <xcdg:DataGridControl.Columns>
    <xcdg:Column FieldName=”User”
    Title=”User”
    MinWidth=”100″
    MaxWidth=”220″/>
    <xcdg:Column FieldName=”Cam”
    Title=”Cam”
    MinWidth=”50″
    MaxWidth=”90″/>
    <xcdg:Column FieldName=”Voice”
    Title=”Voice”
    MinWidth=”50″
    MaxWidth=”90″/>
    <xcdg:Column FieldName=”User Status”
    Title=”UserStatus”
    MinWidth=”100″
    MaxWidth=”220″/>
    </xcdg:DataGridControl.Columns>

    ==========================================================
    This is the section of Code that is a “String” that i need to Modifiy to “Update” the Column (User) above..

    public delegate void delUpdateHistory(string str);
    public void UpdateHistory(string str)
    {
    Window2 w2 = new Window2();
    if (str.StartsWith(“[Join]”))
    {
    int nameLength = str.IndexOf(“]”, 6);
    userDC.Items.Add(str.Substring(7, nameLength – 7));
    return;
    }

    Imported from legacy forums. Posted by Gerry (had 1936 views)

    Xceed Support
    Member
    Post count: 5658

    Hi,

    The easiest way I can suggest you is to create a class that would contain 4 properties, one for each column you need.

    You can then instantiate this object whenever you receive your Join string and maintain the list of users this way.

    Imported from legacy forums. Posted by Marcus [Xceed] (had 3191 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.