grid view multiple values [Resolved]

Posted by Sashi under ASP.NET on 2/25/2016 | Points: 10 | Views : 625 | Status : [Member] | Replies : 2
how are multiple values from each column and rows are taken in the grid view . and how are they send to the back end to the data base . using .net c#.




Responses

Posted by: Rajnilari2015 on: 2/25/2016 [Member] [Microsoft_MVP] [MVP] Platinum | Points: 50

Up
0
Down

Resolved

A grid view is a table which is a collection of Rows.
The below pseudo code will help to understand the concept

<table>
foreach(var record in Records)
{
<tr>
<td>record.Id</td>
<td>record.Name</td>
<td>record.Age</td>
<td>record.Sex</td>
</tr>
}

</table>


This is the process by which we read/write the values from Grid.
Hope this clears your doubt.

--
Thanks & Regards,
RNA Team

Sashi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Jitendrasoft09 on: 2/25/2016 [Member] [MVP] Starter | Points: 25

Up
0
Down
Hi,

You have to map your gridview columns with corresponding table to display in gridview. You can customized the grid accordingly in defined database table.

Refer below link-
http://stackoverflow.com/questions/18960601/how-to-bind-a-gridview-from-database

Jitendra Kumar
If my post helps you, plz mark as an answer.

Sashi, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response