Datagrid and Datatable In Pocket PC Vb.net2005
-
I am working on a pocket pc application by using vb.net 2005. I have 2 questions about the datagrid and datatable. 1. What I want is that when the datagrid is populated then application should check the datagrid first cell value and if it is null then it should change the backcolor of that row to Red. 2. I am creating a datatable on form load event and the adding rows by executing the sql statement by using datareader. Now I want to add a tablestyle to that datagrid and want to set the width of the datagrid columns. Simple is that how I can set a datagrid table style while setting the datasource to datatable? Thanks In advance
-
I am working on a pocket pc application by using vb.net 2005. I have 2 questions about the datagrid and datatable. 1. What I want is that when the datagrid is populated then application should check the datagrid first cell value and if it is null then it should change the backcolor of that row to Red. 2. I am creating a datatable on form load event and the adding rows by executing the sql statement by using datareader. Now I want to add a tablestyle to that datagrid and want to set the width of the datagrid columns. Simple is that how I can set a datagrid table style while setting the datasource to datatable? Thanks In advance
You should be asking this in the Mobile Development forum since the .NET CF Framework is a smaller subset of the full .NET Framework. It doesn't matter which language you're using, the limitations of the CF Framework change how the code is written.
ejaz_pk wrote:
1. What I want is that when the datagrid is populated then application should check the datagrid first cell value and if it is null then it should change the backcolor of that row to Red.
DataGridView custom draw row[^]
ejaz_pk wrote:
2. I am creating a datatable on form load event and the adding rows by executing the sql statement by using datareader. Now I want to add a tablestyle to that datagrid and want to set the width of the datagrid columns.
DataGridView column width autosize[^]
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008
But no longer in 2009...