Click here to Skip to main content
15,886,664 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi friends,

How to add rows programmatically during run-time in DataGrid in Windows Mobile Application?I have tried adding it but it doesn't getting added.
There is no property in DataGrid like DataGrid1.Rows.Add() or DataGrid1.columns.Add().
This is the Windows Mobile Application.
Provide me solution if exists.

Thanks with regards,
S.Shankar.
Posted

1 solution

1- get DataGrid's datasource and save it into datatable
2- add new row in the datatable
3- set the datatable as a dataSource for the DataGrid.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900