How to get the Maximum of Value of In a Rows in DataGridView
-
Hi ! Is There Help to Find the Maximum Value in A Row of A DataGridView . Thanks In Advance !
-
Hi ! Is There Help to Find the Maximum Value in A Row of A DataGridView . Thanks In Advance !
No. A DataGridView just holds Columns, it does not assume those Columns hold data types that are comparable amongst themselves. :)
Luc Pattyn [My Articles] Nil Volentibus Arduum
-
Hi ! Is There Help to Find the Maximum Value in A Row of A DataGridView . Thanks In Advance !
You'll have to teach it how.
-
Hi ! Is There Help to Find the Maximum Value in A Row of A DataGridView . Thanks In Advance !
-
You'll have to teach it how.
-
DataGridView was not designed for data manipulation. I would suggest you write an SQL query or Stored procedure that uses the
MAX
function and then call it with theCommand.ExecuteScalar()
method.Quote:
You'll have to teach it how.
Yes , You are Right ! :-\ in fact I shouldn't to use any database , otherwise , it was simple than i want to do this now ! in any case I should do it with help u ! Regards ! :)