datagridview
-
hai all, i am using dotnet 2005.i doing my project in vb.net windows application. Is it possible to generate serial number in datagridview.if possible means,i want to generate serial number in datagridview by descending order in windows application,not in web application.
-
hai all, i am using dotnet 2005.i doing my project in vb.net windows application. Is it possible to generate serial number in datagridview.if possible means,i want to generate serial number in datagridview by descending order in windows application,not in web application.
Sure, you have complete control available to you. However you should make the changes in your datasource not the datagridview. IE when you add a row make the change at the row level. Beware if you are adding an "identity" value that is not controlled by your datasource (database) you are asking for trouble.
Never underestimate the power of human stupidity RAH
-
hai all, i am using dotnet 2005.i doing my project in vb.net windows application. Is it possible to generate serial number in datagridview.if possible means,i want to generate serial number in datagridview by descending order in windows application,not in web application.
For doing that in the DataAdapter you add a column.Let its name be sno.Then you change the autoincrement property of that column to true.Set auto incrementSeed as a number(For ex: 0) from which number you want to start numbering.Change datatype to System.Int64. While binding the datagrid with that adapter the column numbers will come..