[Help][C#]DataGridView menu

Shout-Out

User Tag List

Results 1 to 11 of 11
  1. #1
    omid's Avatar Member
    Reputation
    1
    Join Date
    Mar 2008
    Posts
    33
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Help][C#]DataGridView

    hey everyone , i just have small problem with datagridview in C# im using a datagridview to save (XYZ) on it but i have problem

    instead of positions from first go to down so the first position is first , first position goes down and last comes first any idea how to make it from up to down??

    here is my code:

    Code:
     Removed;
    Last edited by omid; 04-18-2010 at 06:29 AM.

    [Help][C#]DataGridView
  2. #2
    d3rrial's Avatar Contributor Authenticator enabled
    Reputation
    127
    Join Date
    Apr 2010
    Posts
    527
    Thanks G/R
    0/5
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    oO Problem is easier than I thought: You use "Rows.Insert" instead use "Rows.Add" this will make it the other way round...
    Or just use this code:
    Code:
    WoW.OpenProcessAndThread(SProcess.GetProcessFromProcessName("Wow.exe")); // Hook the first WoW process it finds
    uint playerbase = WoW.ReadUInt(WoW.ReadUInt(WoW.ReadUInt(0xb366d0) + 0x34) + 0x24); // Reads Player Base
    float playerx = WoW.ReadFloat(playerbase + 0x798); // Read players xlocation
    float playery = WoW.ReadFloat(playerbase + 0x79c); // Read players ylocation
    float playerz = WoW.ReadFloat(playerbase + 0x7a0); // Read players zlocation
    DataGridView1.Rows.Add(0, playerx, playery, playerz);
    But I don't get why you would want to always have a "0" in Front of your Data...
    Last edited by d3rrial; 04-17-2010 at 07:39 AM.

  3. #3
    omid's Avatar Member
    Reputation
    1
    Join Date
    Mar 2008
    Posts
    33
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks worked

    and if we use insert we need to put 0 or there wil be error ... but for add we dont need)

    just gonna go for save and load XML with dataGridView

    edit if u can help me with XML load and save ?? datadridview :?

    if its important my Column names are:

    X Position
    Y Position
    Z Position
    Last edited by omid; 04-17-2010 at 09:16 AM.

  4. #4
    d3rrial's Avatar Contributor Authenticator enabled
    Reputation
    127
    Join Date
    Apr 2010
    Posts
    527
    Thanks G/R
    0/5
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Dude, I'm very sorry but I'm no C# programmer, I'm a VB.Net beginner.

    You might try to google this

    Why do you use a DataGridVIEW anyways? This is just a Display-Component. This will only show data not hold it.

    I would load the playerx, playery and playerz data into querys.

    This would save all the variables and make it easier to extract and save them to files.
    Last edited by d3rrial; 04-17-2010 at 09:31 AM.

  5. #5
    omid's Avatar Member
    Reputation
    1
    Join Date
    Mar 2008
    Posts
    33
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i didnt even get what u said inn 2nd part ) and DataGridView because wow robot uses the same and more nice and easier

  6. #6
    d3rrial's Avatar Contributor Authenticator enabled
    Reputation
    127
    Join Date
    Apr 2010
    Posts
    527
    Thanks G/R
    0/5
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You know what a query is?

    Its an expandable memory slot. So you can declare it once and put tons of values in it and it will hold them all and you can extract all the values out of it.

  7. #7
    omid's Avatar Member
    Reputation
    1
    Join Date
    Mar 2008
    Posts
    33
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    can i show it to user ? or its hidden in the form??

    and maybe i want use it for click to move ...

  8. #8
    Sychotix's Avatar Moderator Authenticator enabled
    Reputation
    1441
    Join Date
    Apr 2006
    Posts
    3,999
    Thanks G/R
    294/585
    Trade Feedback
    1 (100%)
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by _SkHiEnEgP_ View Post
    You know what a query is?

    Its an expandable memory slot. So you can declare it once and put tons of values in it and it will hold them all and you can extract all the values out of it.
    or... you can simply create a data structure called "Player" which holds all the values (or functions which get/return the values).

  9. #9
    d3rrial's Avatar Contributor Authenticator enabled
    Reputation
    127
    Join Date
    Apr 2010
    Posts
    527
    Thanks G/R
    0/5
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Sychotix View Post
    or... you can simply create a data structure called "Player" which holds all the values (or functions which get/return the values).
    As I said, I'm a beginner. Give him some code and he'll be happy^^

  10. #10
    omid's Avatar Member
    Reputation
    1
    Join Date
    Mar 2008
    Posts
    33
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yes source please

    and its better u give me datagridview Save and load to XML

    Edit : I have an UNBOUND to data set DataGridView thats why i cant use methods on google help plz
    Last edited by omid; 04-17-2010 at 12:53 PM.

  11. #11
    evancroby's Avatar Private
    Reputation
    1
    Join Date
    Sep 2014
    Posts
    1
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    check this...C# Datagridview tutorial

    Originally Posted by omid View Post
    hey everyone , i just have small problem with datagridview in C# im using a datagridview to save (XYZ) on it but i have problem

    instead of positions from first go to down so the first position is first , first position goes down and last comes first any idea how to make it from up to down??

    here is my code:

    Code:
     Removed;

Similar Threads

  1. Help WoW Fish-Bot
    By Eliteplague in forum World of Warcraft General
    Replies: 2
    Last Post: 12-10-2024, 05:46 PM
  2. HELP: Gold Scam Exploit
    By GoldDragon in forum World of Warcraft General
    Replies: 11
    Last Post: 01-23-2007, 07:26 PM
  3. Banner Ad Redesign help
    By Matt in forum Community Chat
    Replies: 57
    Last Post: 07-08-2006, 08:40 PM
  4. Hit points and talent points? Please help
    By hankusdankus in forum World of Warcraft General
    Replies: 6
    Last Post: 05-04-2006, 02:00 PM
  5. bot help
    By xwhitedeathx in forum World of Warcraft General
    Replies: 3
    Last Post: 05-01-2006, 03:50 AM
All times are GMT -5. The time now is 07:36 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search