I try to add columns and rows to a datagrid manually( without any datasource ).But I can't do this. I try it with the tablestyles property but it didn't work. Is there any way to do this?
You can't. DataGrid does not have any data storage inside and can only be used with data binding. Bind it to same data source (e.g. ArrayList) and populate it manually instead.
Microsoft réalise une enquête en ligne pour comprendre votre opinion sur le site Web de Msdn. Si vous choisissez de participer, l’enquête en ligne vous sera présentée lorsque vous quitterez le site Web de Msdn.