Community discussion forum

text+in dataGrid

Tags: csharp India
  • 8 months ago

    Hi fren I wanna add the seperate text in data grid

    my code goes flows..

    string str= first.Text;

    string[] arrstr;

    arrstr=str.Split(new char[]{'=',' '});

    second.Text = String.Empty;

     

    for(int i=0; i<arrstr.Length; i++)

    second.Text += arrstr[i] + "\r\n";

     

    now how can I add it tho the seperate dataGrid column ????

     

  • Advertisement

    Simply the fastest line-level profiler for .NET ever

    “The low overhead means it has minimal impact on the execution of my program”
    Mark Everest, Development Team Leader, Renault F1 Team Ltd.

    Try out the new ANTS Profiler 4 for yourself. Download your 14-day trial now

  • 7 months ago

    Hi Surya,

    If you are getting the values from the split method, fill those values in a dataset and bind that dataset to the grid. Make sure to specify a column name while filling the dataset so that you can bind the same in appropriate column the grid.

    Regards,

    Pramod 

     

     

Post a reply

Enter your message below

Sign in or Join us (it's free).