#VB.NET

1 messages · Page 1 of 1 (latest)

past mulch
#

Anyone here that can help with Vb.net

hexed granite
#

Please ask your question directly

#

Please take a minute to read the #📄・posting-guidelines

past mulch
#

Ok it was just that it’s rare to find people that use Vb.net

#

I doubt anyone here does

#

Should i put my problems or start another one

gusty badge
past mulch
#

I made a code which stores details of batters and bowlers in a data grid but I want to store them in the data grid from most runs to least runs how can I do this

hexed granite
#

Just put your problem here and be sure to include as much details as possible

past mulch
#

Ok is that better

past mulch
gusty badge
#

you have a datagridview?

past mulch
#

Yes

gusty badge
#

I think you just do DataGridView1.Sort(DataGridView1.Columns(1), ListSortDirection.Descending)

#

with the right name and right columns that you need

past mulch
#

I put this then said I need to declare listsortdirection then put Dim listsortdirection AS

#

Then I got an error

#

What did I do wrong

gusty badge
#

try System.ComponentModel.ListSortDirection.Descending

past mulch
#

I want to make a league table so there’s like 12 teams
3 points for a win
1 for a draw
0 for a loss
But don’t know how to do this can anyone help me please

past mulch
gusty badge
#

Maybe datagridview.Rows[i].Cells["columnName"].Value = newValue

past mulch
#

No I mean can you help with the league table

gusty badge
#

wdym

#

you said you needed help with updating the table no?

past mulch
#

No

#

That was my bad I said it wrong

#

I want to make a league table so there’s like 12 teams
3 points for a win
1 for a draw
0 for a loss
But don’t know how to do this can anyone help me please

gusty badge
#

well you make the table then the code to update the points. This sounds like a basic if else scenario

past mulch
#

I am a beginner so I’m not sure

gusty badge
#

what have you try so far?

past mulch
#

Tbh I just made the league table with the data grid dk how to start off

gusty badge
#

it depends on what you need lol do you want to just update the data, simulate the games, have input to enter the games score , etc etc there are so many things you can do that it depends on what you want

past mulch
#

I just want it to be like this

gusty badge
#

@past mulch do you have all those data available?

past mulch
gusty badge
#

not sure the datagridview can let you put colored stuff in it

past mulch
#

I want it without green and red and nrr

gusty badge
#

try this video maybe

#

★★★Top Online Courses From ProgrammingKnowledge ★★★
Python Programming Course ➡️ http://bit.ly/2vsuMaS ⚫️ http://bit.ly/2GOaeQB
Java Programming Course ➡️ http://bit.ly/2GEfQMf ⚫️ http://bit.ly/2Vvjy4a
Bash Shell Scripting Course ➡️ http://bit.ly/2DBVF0C ⚫️ http://bit.ly/2UM06vF
Linux Command Line Tutorials ➡️ http://bit.ly/2IXuil0 ⚫️ http://bit...

▶ Play video
past mulch
#

Ik how to do this

#

Idk how to update the league table for example when a team wins add 3 points to them

#

@gusty badge what do you think

gusty badge
#

thats how you update data in the grid

past mulch
#

Let’s say I want to update a team from 0 to 3 points how will I code that

gusty badge
#

datagridview.Rows[i].Cells["Score"].Value = 3

#

thats exactly what I sent no?

#

just need to modify the name of the cell

past mulch
#

I’m gonna try it let you know thanks