See this

Sujit Patil replied to Dharma K at 05-Jul-08 04:34

If you want to assign text box's value to gridview then just try it like;

int RowNo=0;

int ColNo=0;

GridView1[RowNo, ColNo].Value = Tebox1.Text;

It will add text box value into grid view's 1st row 1st col.

For label just try this one;

GridView1[RowNo, ColNo].Value = Label1.Text;

Best Luck!!!!!!!!!!!!!!
Sujit.


Click here to sign in and reply. You could earn money via our $500 contest just for being helpful.
  Enter the from textbox text to dispaly datagridview - Dharma K  05-Jul-08 03:25 3:25:33 AM
      Reply - alice johnson  05-Jul-08 03:56 3:56:33 AM
      try this.... - Vasanthakumar D  05-Jul-08 04:20 4:20:58 AM
          Thank u Vasanth...Thanks to all - Dharma K  05-Jul-08 08:08 8:08:03 AM
      See this - Sujit Patil  05-Jul-08 04:34 4:34:52 AM
          Thanks Sujit - Dharma K  05-Jul-08 08:08 8:08:43 AM
      Re : Enter the from textbox text to dispaly datagridview - Ashutosh Dhok  05-Jul-08 06:38 6:38:30 AM
View Posts