|
-
March 21st, 2009, 11:55 AM
#1
How to read acontent of a cell in datagrid view
Hi Every Body
I'm a new in VC#.net and want to know How to read the content of a cell in datagridview control.
for exampel i wrote the code below to add an items to the datagridview cells
DataTable table = new DataTable();
DataColumn nameCol;
DataColumn emailCol;
DataColumn telNumCol;
DataRow row = table.NewRow();
row[nameCol] = telRecordObj.GSName;
row[emailCol] = telRecordObj.GSEmail;
row[telNumCol] = telRecordObj.GSTeleNumber;
table.Rows.Add(row);
dataGridView1.DataSource = table.DefaultView;
now what's the code for reading the content of a row of cells
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|